fix: update remaining old names in scripts, rename service file
This commit is contained in:
parent
aa9d824ba1
commit
17b0ecefc3
@ -190,11 +190,11 @@ if [ $BUILD_AGENT -eq 1 ]; then
|
||||
|
||||
# 编译 Agent
|
||||
echo -e "${CYAN}[编译 Agent]${NC}"
|
||||
go build -o safesight-agent_linux_arm64 ./cmd/safesight-agent
|
||||
go build -o safesight-edge-agent ./cmd/safesight-agent
|
||||
|
||||
echo -e "${GREEN}✓${NC} Agent 编译完成"
|
||||
echo " 输出: $AGENT_DIR/safesight-agent_linux_arm64"
|
||||
ls -lh "$AGENT_DIR/safesight-agent_linux_arm64"
|
||||
echo " 输出: $AGENT_DIR/safesight-edge-agent"
|
||||
ls -lh "$AGENT_DIR/safesight-edge-agent"
|
||||
fi
|
||||
echo ""
|
||||
fi
|
||||
|
||||
@ -416,7 +416,7 @@ import re
|
||||
config_file = "/opt/safesight-edge-server/etc/safesight-edge-server.json"
|
||||
install_dir = "/opt/safesight-edge-server"
|
||||
runtime_dir = "/var/lib/safesight-edge-server"
|
||||
project_dir = os.path.expanduser("~/apps/OrangePi3588Media")
|
||||
project_dir = os.path.expanduser("~/apps/safesight-edge")
|
||||
|
||||
def fix_path(path):
|
||||
"""修复配置文件中的路径"""
|
||||
|
||||
@ -18,7 +18,7 @@ StartLimitInterval=60s
|
||||
StartLimitBurst=3
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=media-server
|
||||
SyslogIdentifier=safesight-edge-server
|
||||
|
||||
# 资源限制
|
||||
LimitNOFILE=65536
|
||||
@ -291,5 +291,5 @@ echo " pkg-config --exists libcurl && echo 'libcurl: OK'"
|
||||
echo " ffmpeg -version | head -1"
|
||||
echo ""
|
||||
echo "下一步:"
|
||||
echo " cd ~/apps/OrangePi3588Media/build"
|
||||
echo " cd ~/apps/safesight-edge/build"
|
||||
echo " cmake .. && make -j\$(nproc)"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user