mirror of
git://f0xx.org/ac/ac-deploy
synced 2026-07-29 04:19:00 +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:
committed by
Anton Afanasyeu
parent
4d2db29b8b
commit
6c2403aae9
@@ -30,6 +30,12 @@ fi
|
||||
cd "$AC_ROOT"
|
||||
log "submodule sync + init core: ${SUBS_CORE}"
|
||||
git submodule sync --recursive 2>/dev/null || true
|
||||
for _sub in $SUBS_CORE; do
|
||||
if [ -d "${AC_ROOT}/${_sub}" ]; then
|
||||
git -C "${AC_ROOT}/${_sub}" checkout -f HEAD 2>/dev/null || true
|
||||
git -C "${AC_ROOT}/${_sub}" clean -fd 2>/dev/null || true
|
||||
fi
|
||||
done
|
||||
# shellcheck disable=SC2086
|
||||
git submodule update --init --depth 1 $SUBS_CORE
|
||||
log "submodule init compose: ${SUBS_COMPOSE}"
|
||||
|
||||
Reference in New Issue
Block a user