From 139cb061bb5a8631c1db97d5430cd7e8720ccede Mon Sep 17 00:00:00 2001 From: Bernhard Radermacher Date: Thu, 19 Feb 2026 14:28:36 +0100 Subject: [PATCH] fix server start --- docker-entrypoint-initdb.d/00-main.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-entrypoint-initdb.d/00-main.sh b/docker-entrypoint-initdb.d/00-main.sh index ac0f4e6..97cee22 100755 --- a/docker-entrypoint-initdb.d/00-main.sh +++ b/docker-entrypoint-initdb.d/00-main.sh @@ -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