release 1.10.4: strict suite auto-upgrade; bootstrap monpages ERROR; stage timer units

This commit is contained in:
Hernâni Marques 2026-07-19 01:32:09 +02:00
parent bc0d0a5485
commit 761e3d3c11
No known key found for this signature in database
GPG key ID: CB5738652768F7E9
8 changed files with 143 additions and 25 deletions

View file

@ -170,7 +170,17 @@ if [ -f "$AGENT_MON/taler-monitoring.sh" ]; then
fi
# shellcheck source=update-suite.sh
source "$AGENT_DIR/update-suite.sh"
# Strict suite auto-upgrade (default): abort if Forgejo fetch/reset fails so
# hosts never keep publishing old / bootstrap HTML indefinitely.
if ! source "$AGENT_DIR/update-suite.sh"; then
echo "ERROR: suite auto-update failed — refusing to run with stale tree" >&2
echo " fix git/network or set SUITE_UPDATE_STRICT=0 only as emergency" >&2
exit 1
fi
# Prefer host-agent scripts from the *updated* suite tree
if [ -d "${SUITE_DIR:-}/host-agent" ]; then
AGENT_DIR="${SUITE_DIR}/host-agent"
fi
SUITE_MON="${SUITE_DIR}"
ROOT="$SUITE_MON"