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:
parent
9b065c10ab
commit
f38142cbd3
7 changed files with 61 additions and 13 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue