From 471b445fe6182436462c4e0d59a27fb2313e8ae9 Mon Sep 17 00:00:00 2001 From: Bernhard Radermacher Date: Fri, 20 Feb 2026 13:43:24 +0100 Subject: [PATCH] fix hba --- 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 d694153..4e540cb 100755 --- a/docker-entrypoint-initdb.d/00-main.sh +++ b/docker-entrypoint-initdb.d/00-main.sh @@ -20,10 +20,10 @@ create_hba() { echo "local all all trust" > /var/lib/postgresql/data/pg_hba.conf echo "local replication repmgr trust" >> /var/lib/postgresql/data/pg_hba.conf echo "host replication repmgr 127.0.0.1/32 trust" >> /var/lib/postgresql/data/pg_hba.conf - echo "host replication repmgr ${POSTGRES_NETWORK-100.64.0.0/10} trust" >> /var/lib/postgresql/data/pg_hba.conf + echo "host replication repmgr ${POSTGRES_NETWORK:-100.64.0.0/10} trust" >> /var/lib/postgresql/data/pg_hba.conf echo "local repmgr repmgr trust" >> /var/lib/postgresql/data/pg_hba.conf echo "host repmgr repmgr 127.0.0.1/32 trust" >> /var/lib/postgresql/data/pg_hba.conf - echo "host repmgr repmgr ${POSTGRES_NETWORK-100.64.0.0/10} trust" >> /var/lib/postgresql/data/pg_hba.conf + echo "host repmgr repmgr ${POSTGRES_NETWORK:-100.64.0.0/10} trust" >> /var/lib/postgresql/data/pg_hba.conf echo "host all all all scram-sha-256" >> /var/lib/postgresql/data/pg_hba.conf }