fix witness
This commit is contained in:
@@ -34,6 +34,8 @@ case "$REPMGR_NODE_ROLE" in
|
|||||||
/usr/lib/postgresql/15/bin/repmgr -f /etc/repmgr.conf standby register
|
/usr/lib/postgresql/15/bin/repmgr -f /etc/repmgr.conf standby register
|
||||||
;;
|
;;
|
||||||
witness )
|
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
|
until /usr/lib/postgresql/15/bin/repmgr -h $REPMGR_UPSTREAM -f /etc/repmgr.conf witness register &> /dev/null
|
||||||
do
|
do
|
||||||
echo "Primary host not ready. Waiting for 5 minutes..."
|
echo "Primary host not ready. Waiting for 5 minutes..."
|
||||||
|
|||||||
Reference in New Issue
Block a user