fix 1.23.5: per-job mon page publish (no full-tree rsync --delete)

Shared /var/www/monitoring-sites is multi-agent. Full-tree --delete wiped
sibling families (e.g. monitoring-max-ladder after main/surface runs).
Publish only HTML_OK_DIR/HTML_ERR_DIR per host; apply-monitoring-live merges.
This commit is contained in:
Hernâni Marques 2026-07-22 03:35:05 +02:00
parent 9b065c10ab
commit f38142cbd3
No known key found for this signature in database
7 changed files with 61 additions and 13 deletions

View file

@ -27,9 +27,12 @@ if [[ ! -d "$STAGING" ]]; then
exit 1
fi
echo "== 1) HTML staging → www =="
echo "== 1) HTML staging → www (merge, no full-tree --delete) =="
# Shared www holds many agent families (monitoring, max-ladder, surface, …).
# Full-tree rsync --delete wiped sibling pages when staging was incomplete.
# Merge-update only: never remove dirs that staging does not list.
mkdir -p "$WWW"
rsync -a --delete "$STAGING/" "$WWW/"
rsync -a --delay-updates "$STAGING/" "$WWW/"
# allow hernani to update future runs without root
chown -R hernani:caddy "$WWW"
chmod -R g+rwX "$WWW"