fix server start
This commit is contained in:
@@ -46,7 +46,12 @@ if [[ -z $UPSTREAM ]]; then
|
|||||||
echo "max_connections = ${MAX_CONNECTIONS}" >> /var/lib/postgresql/data/postgresql.conf
|
echo "max_connections = ${MAX_CONNECTIONS}" >> /var/lib/postgresql/data/postgresql.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
docker_temp_server_start
|
set -- postgres -c listen_addresses='*' -p "${PGPORT:-5432}"
|
||||||
|
NOTIFY_SOCKET= \
|
||||||
|
PGUSER="${PGUSER:-$POSTGRES_USER}" \
|
||||||
|
pg_ctl -D "$PGDATA" \
|
||||||
|
-o "$(printf '%q ' "$@")" \
|
||||||
|
-w start
|
||||||
|
|
||||||
/usr/lib/postgresql/15/bin/repmgr -f /etc/repmgr.conf primary register
|
/usr/lib/postgresql/15/bin/repmgr -f /etc/repmgr.conf primary register
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user