1
0
mirror of git://f0xx.org/ac/ac-deploy synced 2026-07-29 05:19:12 +03:00
Files
ac-deploy/sim/cluster0/scripts/sync-cluster-scripts.sh
Anton Afanasyeu eaee3d051d Sync lab-seeds to /shared/cluster in sync-cluster-scripts.
Ensures composed backend overlays include media pipeline PHP/API/JS after
ac-deploy updates.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-11 15:33:42 +02:00

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"