remove support for witness
This commit is contained in:
@@ -170,11 +170,8 @@ if [[ ! -s "$PGDATA/PG_VERSION" ]]; then
|
|||||||
/usr/lib/postgresql/15/bin/repmgr -f /etc/repmgr/repmgr.conf standby register
|
/usr/lib/postgresql/15/bin/repmgr -f /etc/repmgr/repmgr.conf standby register
|
||||||
;;
|
;;
|
||||||
witness )
|
witness )
|
||||||
until /usr/lib/postgresql/15/bin/repmgr -h $REPMGR_UPSTREAM -f /etc/repmgr/repmgr.conf witness register &> /dev/null
|
echo "Witness Server not supported for this configuration!"
|
||||||
do
|
exit 100
|
||||||
echo "Primary host not ready. Waiting for 5 minutes..."
|
|
||||||
sleep 300
|
|
||||||
done
|
|
||||||
;;
|
;;
|
||||||
* )
|
* )
|
||||||
/usr/lib/postgresql/15/bin/repmgr -f /etc/repmgr/repmgr.conf primary register
|
/usr/lib/postgresql/15/bin/repmgr -f /etc/repmgr/repmgr.conf primary register
|
||||||
|
|||||||
Reference in New Issue
Block a user