diff --git a/sync-dyno.sh b/sync-dyno.sh index 04c048f..e411d58 100755 --- a/sync-dyno.sh +++ b/sync-dyno.sh @@ -21,12 +21,14 @@ if [ -f "$LOG_FILE" ] && [ $(stat -c%s "$LOG_FILE" 2>/dev/null || echo 0) -gt 10 mv "$LOG_FILE" "$LOG_FILE.old" fi -# Sync file -if ! rsync -az im:/matrix/traefik/config/dyno.yml "$DEST_FILE" 2>> "$LOG_FILE"; then +# Sync file - use explicit SSH options for cron compatibility +if ! rsync -az -e "ssh -o StrictHostKeyChecking=no" maddox@192.168.12.3:/matrix/traefik/config/dyno.yml "$DEST_FILE" 2>> "$LOG_FILE"; then log "ERROR: rsync failed" exit 1 fi +log "Synced dyno.yml" + # Check for changes and auto-commit/push cd "$SCRIPTS_DIR" if [ -d .git ]; then