fix: remove remaining rk3588 references from config defaults and deploy.sh
This commit is contained in:
parent
93b849bd9d
commit
a798965259
@ -53,7 +53,7 @@ func Default() Config {
|
||||
RequireTokenForRead: false,
|
||||
DiscoveryEnable: true,
|
||||
DiscoveryPort: 35688,
|
||||
DeviceIDPath: "/var/lib/rk3588-agent/device_id",
|
||||
DeviceIDPath: "/var/lib/safesight-edge-agent/device_id",
|
||||
ModelsDir: "/opt/safesight-edge-server/models",
|
||||
ResourcesDir: "/opt/safesight-edge-server/resources",
|
||||
MaxUploadMB: 200,
|
||||
|
||||
@ -142,7 +142,7 @@ install_logrotate() {
|
||||
EOF
|
||||
|
||||
# HLS 分片清理(保留最近7天)
|
||||
cat > "$LOGROTATE_DIR/rk3588-hls" << 'EOF'
|
||||
cat > "$LOGROTATE_DIR/safesight-edge-server-hls" << 'EOF'
|
||||
/var/lib/safesight-edge-server/hls/*/index*.ts {
|
||||
daily
|
||||
rotate 1
|
||||
@ -163,7 +163,7 @@ EOF
|
||||
EOF
|
||||
|
||||
chmod 644 "$LOGROTATE_DIR/safesight-edge-server"
|
||||
chmod 644 "$LOGROTATE_DIR/rk3588-hls"
|
||||
chmod 644 "$LOGROTATE_DIR/safesight-edge-server-hls"
|
||||
|
||||
echo -e "${GREEN}✓${NC} 日志轮转配置完成"
|
||||
}
|
||||
@ -704,7 +704,7 @@ cmd_upgrade() {
|
||||
fi
|
||||
|
||||
# 备份配置
|
||||
BACKUP_DIR="/root/rk3588-backup-$(date +%Y%m%d%H%M%S)"
|
||||
BACKUP_DIR="/root/safesight-edge-backup-$(date +%Y%m%d%H%M%S)"
|
||||
mkdir -p "$BACKUP_DIR"
|
||||
[ -f "$INSTALL_DIR/etc/media-server.json" ] && cp "$INSTALL_DIR/etc/media-server.json" "$BACKUP_DIR/"
|
||||
echo "配置已备份到: $BACKUP_DIR"
|
||||
@ -841,12 +841,12 @@ cmd_uninstall() {
|
||||
rm -f "$SERVICE_DIR/media-server.service"
|
||||
rm -f "$SERVICE_DIR/safesight-agent.service"
|
||||
rm -f "$LOGROTATE_DIR/safesight-edge-server"
|
||||
rm -f "$LOGROTATE_DIR/rk3588-hls"
|
||||
rm -f "$LOGROTATE_DIR/safesight-edge-server-hls"
|
||||
rm -f "/etc/cron.d/safesight-edge-server"
|
||||
systemctl daemon-reload
|
||||
|
||||
echo "[3/4] 备份数据..."
|
||||
BACKUP_DIR="/root/rk3588-backup-$(date +%Y%m%d%H%M%S)"
|
||||
BACKUP_DIR="/root/safesight-edge-backup-$(date +%Y%m%d%H%M%S)"
|
||||
mkdir -p "$BACKUP_DIR"
|
||||
[ -f "$INSTALL_DIR/etc/media-server.json" ] && cp "$INSTALL_DIR/etc/media-server.json" "$BACKUP_DIR/"
|
||||
[ -d "$HLS_DIR" ] && cp -r "$HLS_DIR" "$BACKUP_DIR/" 2>/dev/null || true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user