#!/bin/bash set -euo pipefail # Apply / roll back the Gitea #52 and #131 site-script fixes on one ScadaBridge central. # Prepared 2026-11-12; see README.md in this folder for the order relative to the binary deploy. # # SCADABRIDGE_URL=http://wonder-app-vd03.zmr.zimmer.com:8085 \ # SCADABRIDGE_USERNAME=... SCADABRIDGE_PASSWORD=... \ # bash apply.sh <52|131> [--no-deploy] # # SB_SKIP=Z28061,Other optional: instances never deployed by this script (left stale; deploy them later). # SB_EXPECT=Z28062,... optional: refuse to write unless every listed instance exists on this central — # proves the URL reached the intended tier (2026-11-15: an env-only URL silently hit DEV). # # check READ-ONLY. Prints, per target script, whether the live body is the ORIGINAL (deployed # 2026-11-12), the FIXED body, or something else, and whether each instance is stale. # apply Guarded update: refuses unless the live body is byte-identical to original/