mirror of
git://f0xx.org/ac/ac-deploy
synced 2026-07-29 05:19:12 +03:00
cluster0: lab seeds, Gitea mirrors, compose mail, verify tooling
Freeze lab-seeds backend for COMPOSE_SKIP_MONOLITH; fix Gitea mirror scripts for 1.25 API; add secrets.lab.env template, verify-mail-lab, LAB_PUBLIC_ORIGIN, and credentials pointers for mirror token recovery. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -56,6 +56,24 @@ check_local_node() {
|
||||
sh "$ROOT/scripts/validate-ac-repos.sh" || FAIL=1
|
||||
fi
|
||||
|
||||
if [ "${GITEA_ENABLE:-0}" = "1" ] && is_primary_node; then
|
||||
rc-service gitea status 2>/dev/null | grep -qi started || { log "FAIL gitea not running"; FAIL=1; }
|
||||
GCODE="$(curl -sS -o /dev/null -w '%{http_code}' http://127.0.0.1:3000/ 2>/dev/null || echo 000)"
|
||||
case "$GCODE" in
|
||||
200|302) log "gitea_direct=${GCODE}" ;;
|
||||
*) log "FAIL gitea_direct=${GCODE}"; FAIL=1 ;;
|
||||
esac
|
||||
GIT_UI="$(curl -sS -o /dev/null -w '%{http_code}' \
|
||||
"http://127.0.0.1/app/androidcast_project/git/" 2>/dev/null || echo 000)"
|
||||
case "$GIT_UI" in
|
||||
200|302) log "gitea_nginx=${GIT_UI}" ;;
|
||||
*) log "WARN gitea_nginx=${GIT_UI} (want 200/302)" ;;
|
||||
esac
|
||||
if [ -x "$ROOT/scripts/verify-gitea-mirrors.sh" ]; then
|
||||
sh "$ROOT/scripts/verify-gitea-mirrors.sh" || log "WARN gitea mirror inventory incomplete"
|
||||
fi
|
||||
fi
|
||||
|
||||
CRASH_N="$(mariadb -u androidcast -p"$(read_cred mariadb_app password)" -h127.0.0.1 -N -e \
|
||||
"SELECT COUNT(*) FROM information_schema.tables WHERE table_schema='androidcast_crashes'" 2>/dev/null || echo 0)"
|
||||
[ "$CRASH_N" = "$EXPECTED_CRASHES_TABLES" ] || { log "FAIL crashes tables=$CRASH_N want $EXPECTED_CRASHES_TABLES"; FAIL=1; }
|
||||
|
||||
Reference in New Issue
Block a user