1
0
mirror of git://f0xx.org/ac/ac-scripts synced 2026-07-29 05:59:16 +03:00

full_deployment: sync /shared/cluster from git repo on each phase_sync

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Anton Afanasyeu
2026-07-04 11:17:24 +02:00
parent a6125628b2
commit 0544d18d91

View File

@@ -76,6 +76,8 @@ phase_sync() {
local host="$1" local host="$1"
log "$host: pulling latest ac/* repos..." log "$host: pulling latest ac/* repos..."
rsh "$host" "cd /mnt/repos/ac && git fetch origin && git checkout next && git pull && git submodule update --init --recursive 2>&1 | tail -5" rsh "$host" "cd /mnt/repos/ac && git fetch origin && git checkout next && git pull && git submodule update --init --recursive 2>&1 | tail -5"
# Keep /shared/cluster scripts and nginx templates in sync with the git repo
rsh "$host" "[ -d /mnt/repos/ac/ac-deploy/sim/cluster0 ] && sudo rsync -a --exclude='.git' /mnt/repos/ac/ac-deploy/sim/cluster0/ /shared/cluster/ 2>/dev/null || true"
ok "$host: sync done" ok "$host: sync done"
} }