remove support for witness

This commit is contained in:
Bernhard Radermacher
2026-02-23 12:18:27 +01:00
parent bcbe00f477
commit 5ba26897bf

View File

@@ -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