From cfff7b5ff7adf4d61e5dc36f610458c2a4bb05b3 Mon Sep 17 00:00:00 2001 From: Bernhard Radermacher Date: Fri, 20 Mar 2026 08:12:07 +0100 Subject: [PATCH] fixing --- entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index cdf5922..7fb0cb5 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -72,7 +72,7 @@ pg_setup_hba_conf() { printf 'host replication %s %s trust\n' "$POSTGRES_PGPOOL_USERNAME" "${POSTGRES_NETWORK:-100.64.0.0/10}" fi printf '\n' - printf 'host all all all scram-sha-256' + printf 'host all all all scram-sha-256\n' } >> "$PGDATA/pg_hba.conf" } @@ -88,6 +88,7 @@ docker_setup_env if [[ ! -s "$PGDATA/PG_VERSION" ]]; then if [[ -z $POSTGRES_UPSTREAM ]] || [[ -z $POSTGRES_REPLICATOR_USERNAME ]]; then + echo ${POSTGRES_PASSWORD} initdb --username=postgres --pwfile=<(printf "%s\n" "${POSTGRES_PASSWORD}") pg_setup_conf pg_setup_hba_conf