release 1.10.7: do not overlay stale site-gen over suite tip

This commit is contained in:
Hernâni Marques 2026-07-19 01:39:48 +02:00
parent ef4dde4946
commit fb5b1587e3
No known key found for this signature in database
GPG key ID: CB5738652768F7E9
3 changed files with 4 additions and 11 deletions

View file

@ -226,16 +226,8 @@ elif [ "$_need_overlay" = "1" ]; then
ROOT="$AGENT_MON"
else
echo "using suite mon @ ${COMMIT_SHORT:-?} · $ROOT"
fi
# Always restore host-agent + site-gen from pre-reset snapshot when present
# (systemd ExecStart points at ~/src/taler-monitoring; overlay may lag Forgejo).
if [ -d "$OVERLAY_DIR/host-agent" ]; then
mkdir -p "$SUITE_MON/host-agent" 2>/dev/null || true
rsync -a "$OVERLAY_DIR/host-agent/" "$SUITE_MON/host-agent/" 2>/dev/null || true
fi
if [ -d "$OVERLAY_DIR/site-gen" ]; then
mkdir -p "$SUITE_MON/site-gen"
rsync -a "$OVERLAY_DIR/site-gen/" "$SUITE_MON/site-gen/" 2>/dev/null || true
# Do NOT rsync suite-overlay over a fresh Forgejo tree — that reintroduced
# stale site-gen/host-agent (bootstrap sticky, old monpages) on stage/betel.
fi
unset _need_overlay