mirror of
git://f0xx.org/ac/ac-scripts
synced 2026-07-29 03:57:56 +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:
@@ -76,6 +76,8 @@ phase_sync() {
|
||||
local host="$1"
|
||||
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"
|
||||
# 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"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user