1
0
mirror of git://f0xx.org/ac/ac-deploy synced 2026-07-29 04:38:48 +03:00

fix(cluster0): preserve issues layout overlay and validate rsync deploy

Compose ac-be-issues views last so tickets/graphs stubs no longer overwrite
the canonical nav shell (monitor link). validate-ac-repos accepts /mnt/repos/ac
lab checkout and unset url-shortener origin.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Anton Afanasyeu
2026-07-05 18:28:46 +02:00
parent 4e885056e0
commit 56a6cd785d
2 changed files with 27 additions and 9 deletions

View File

@@ -63,18 +63,33 @@ fi
URL_ROOT="${URL_SHORTENER_ROOT:-/var/www/url-shortener}"
if [ -d "${URL_ROOT}/.git" ]; then
_url="$(git -C "$URL_ROOT" config --get remote.origin.url 2>/dev/null || true)"
case "$_url" in
git://f0xx.org/ac/*|git://f0xx.org/ac/ac-ms-url-shortener|git://10.7.0.10/ac/*|git://10.7.0.10/ac/ac-ms-url-shortener)
log "OK url-shortener origin $_url"
;;
if [ -z "$_url" ]; then
log "OK url-shortener (origin unset — lab checkout)"
else
case "$_url" in
git://f0xx.org/ac/*|git://f0xx.org/ac/ac-ms-url-shortener|git://10.7.0.10/ac/*|git://10.7.0.10/ac/ac-ms-url-shortener)
log "OK url-shortener origin $_url"
;;
*)
log "FAIL url-shortener wrong origin $_url (expect git://f0xx.org/ac/ac-ms-url-shortener)"
FAIL=1
;;
esac
fi
fi
REPOS_AC="/mnt/repos/ac"
if [ -d "${REPOS_AC}/.git" ]; then
_root="$(git -C "$REPOS_AC" config --get remote.origin.url 2>/dev/null || true)"
log "ac-root origin=${_root} sha=$(git -C "$REPOS_AC" rev-parse --short HEAD 2>/dev/null || echo none)"
case "$_root" in
git://f0xx.org/ac|git://10.7.0.10/ac) ;;
*)
log "FAIL url-shortener wrong origin $_url (expect git://f0xx.org/ac/ac-ms-url-shortener)"
log "FAIL ac-root wrong origin $_root"
FAIL=1
;;
esac
fi
if [ -d "${AC_ROOT}/.git" ]; then
elif [ -d "${AC_ROOT}/.git" ]; then
_ws="$(git -C "$AC_ROOT" config --get remote.origin.url 2>/dev/null || true)"
log "ac-workspace origin=${_ws} sha=$(git -C "$AC_ROOT" rev-parse --short HEAD 2>/dev/null || echo none)"
case "$_ws" in
@@ -84,6 +99,8 @@ if [ -d "${AC_ROOT}/.git" ]; then
FAIL=1
;;
esac
else
log "OK ac-workspace rsync tree at ${AC_ROOT} (deploy via /mnt/repos/ac)"
fi
if [ "$FAIL" -eq 0 ]; then