fix witness

This commit is contained in:
Bernhard Radermacher
2026-02-20 13:32:47 +01:00
parent 043d857b0e
commit 99132f8c6e

View File

@@ -34,6 +34,8 @@ case "$REPMGR_NODE_ROLE" in
/usr/lib/postgresql/15/bin/repmgr -f /etc/repmgr.conf standby register
;;
witness )
docker_temp_server_stop
server_start
until /usr/lib/postgresql/15/bin/repmgr -h $REPMGR_UPSTREAM -f /etc/repmgr.conf witness register &> /dev/null
do
echo "Primary host not ready. Waiting for 5 minutes..."