mirror of
git://f0xx.org/ac/ac-deploy
synced 2026-07-29 08:18:09 +03:00
Remove monolith clone path; add hub deploy, legacy purge, composed-backend login/logout nginx locations, and full hub asset rsync validation. Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
708 B
Bash
22 lines
708 B
Bash
#!/bin/sh
|
|
# DEPRECATED — cluster uses ac/* only (ac-workspace + compose-lab-backend.sh).
|
|
# This script refuses to clone git://f0xx.org/android_cast.
|
|
set -eu
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
# shellcheck source=/dev/null
|
|
. "$ROOT/scripts/lib/common.sh"
|
|
load_cluster_env
|
|
|
|
LEGACY="${APP_ROOT}/android_cast"
|
|
if [ -d "${LEGACY}/.git" ]; then
|
|
_url="$(git -C "$LEGACY" config --get remote.origin.url 2>/dev/null || true)"
|
|
case "$_url" in
|
|
*android_cast*)
|
|
die "legacy monolith still present at $LEGACY ($_url). Run: sudo sh $ROOT/scripts/purge-legacy-monolith.sh"
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
log "deploy-app: skipped (ac/* compose path — see deploy-ac-workspace.sh + compose-lab-backend.sh)"
|
|
exit 0
|