fix server start

This commit is contained in:
Bernhard Radermacher
2026-02-19 14:28:36 +01:00
parent f0d581ff89
commit 139cb061bb

View File

@@ -46,11 +46,11 @@ if [[ -z $UPSTREAM ]]; then
echo "max_connections = ${MAX_CONNECTIONS}" >> /var/lib/postgresql/data/postgresql.conf
fi
set -- postgres -c listen_addresses='*' -p "${PGPORT:-5432}"
set -- -c listen_addresses='*' -p "${PGPORT:-5432}"
NOTIFY_SOCKET= \
PGUSER="${PGUSER:-$POSTGRES_USER}" \
pg_ctl -D "$PGDATA" \
-o "$(printf '%q ' "$@")" \
-o "-c listen_addresses='*' -p ${PGPORT:-5432}" \
-w start
/usr/lib/postgresql/15/bin/repmgr -f /etc/repmgr.conf primary register