mirror of
git://f0xx.org/ac/ac-deploy
synced 2026-07-29 08:59:30 +03:00
Ensures composed backend overlays include media pipeline PHP/API/JS after ac-deploy updates. Co-authored-by: Cursor <cursoragent@cursor.com>
16 lines
613 B
Bash
16 lines
613 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/"
|
|
if [ -d "$SRC/lab-seeds" ]; then
|
|
cp -a "$SRC/lab-seeds/." "$DST/lab-seeds/"
|
|
fi
|
|
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"
|