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
|
||||
;;
|
||||
witness )
|
||||
until /usr/lib/postgresql/15/bin/repmgr -h $REPMGR_UPSTREAM -f /etc/repmgr/repmgr.conf witness register &> /dev/null
|
||||
do
|
||||
echo "Primary host not ready. Waiting for 5 minutes..."
|
||||
sleep 300
|
||||
done
|
||||
echo "Witness Server not supported for this configuration!"
|
||||
exit 100
|
||||
;;
|
||||
* )
|
||||
/usr/lib/postgresql/15/bin/repmgr -f /etc/repmgr/repmgr.conf primary register
|
||||
|
||||
Reference in New Issue
Block a user