Shadow daemon notification target during demotion
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
|
||||
FILE="$ROOT/ocf/loxthelion/managed-container.d/applications/postgresql/notify.sh"
|
||||
|
||||
grep -q '^mc_pg_notify_target_daemon_shadow()' "$FILE"
|
||||
grep -q '"notify.target"' "$FILE"
|
||||
grep -q 'MC_EXPECTED_SUCCESSOR' "$FILE"
|
||||
grep -q 'comparison=MATCH' "$FILE"
|
||||
grep -q 'notify.target shadow MISMATCH' "$FILE"
|
||||
|
||||
echo "NOTIFY_TARGET_SHADOW_TEST_PASS=1"
|
||||
Reference in New Issue
Block a user