1
0
mirror of git://f0xx.org/ac/ac-deploy synced 2026-07-29 03:38:07 +03:00

Cluster ops: tolerate hub platform stub; auto-clean dirty submodules.

Add sync-cluster-scripts.sh for NFS /shared/cluster updates from /mnt/repos/ac.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Anton Afanasyev
2026-06-24 23:18:15 +02:00
committed by Anton Afanasyeu
parent 4d2db29b8b
commit 6c2403aae9
3 changed files with 24 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
#!/bin/sh
# Sync NFS /shared/cluster from local ac-deploy checkout (run on any cast node as root).
set -eu
SRC="${1:-/mnt/repos/ac/ac-deploy/sim/cluster0}"
DST="${2:-/shared/cluster}"
[ -d "$SRC/scripts" ] || { echo "missing $SRC"; exit 1; }
cp -a "$SRC/scripts/." "$DST/scripts/"
cp -a "$SRC/nginx/." "$DST/nginx/"
install -m644 "$SRC/cluster.env" "$DST/cluster.env"
install -m755 "$SRC/populate_lab_setup.sh" "$DST/"
install -m755 "$SRC/verify_lab_setup.sh" "$DST/" 2>/dev/null || true
echo "sync-cluster-scripts_ok $SRC -> $DST"