#!/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] # # 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/