mirror of
git://f0xx.org/ac/ac-deploy
synced 2026-07-29 05:59:05 +03:00
Add sync-cluster-scripts.sh for NFS /shared/cluster updates from /mnt/repos/ac. Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
532 B
Bash
13 lines
532 B
Bash
#!/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"
|