diff --git a/full_deployment.sh b/full_deployment.sh index ab37be0..4ed3ccd 100755 --- a/full_deployment.sh +++ b/full_deployment.sh @@ -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" }