Add PostgreSQL promotion database gate

This commit is contained in:
Lyncoln
2026-09-18 02:46:40 -04:00
parent 4229008216
commit 798aa40ae5
7 changed files with 160 additions and 11 deletions
+2 -2
View File
@@ -12,8 +12,8 @@ grep -q 'comparison=MATCH' "$FILE"
grep -q 'promote.database shadow MISMATCH' "$FILE"
SHADOW_LINE="$(
grep -n '^[[:space:]]*mc_pg_promote_database_shadow$' "$FILE" |
tail -1 |
grep -n 'if ! mc_pg_promote_database_shadow; then' "$FILE" |
head -1 |
cut -d: -f1
)"