#!/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"