diff --git a/entrypoint.sh b/entrypoint.sh index 3ac793b..5eeedf4 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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