From 5f7e94c3478e899687640c08cebdea30dedd3fd7 Mon Sep 17 00:00:00 2001 From: zzh Date: Fri, 20 Sep 2024 15:07:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E6=9C=BA=E5=AE=B9=E5=99=A8pg=5Fhba.co?= =?UTF-8?q?nf=E9=85=8D=E7=BD=AE=E9=97=AE=E9=A2=98=20=EF=BC=88cherry=20pick?= =?UTF-8?q?ed=20commit=20from=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/dockerfiles/5.0.0/entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/dockerfiles/5.0.0/entrypoint.sh b/docker/dockerfiles/5.0.0/entrypoint.sh index c1477bf11..af94e45a8 100644 --- a/docker/dockerfiles/5.0.0/entrypoint.sh +++ b/docker/dockerfiles/5.0.0/entrypoint.sh @@ -259,7 +259,9 @@ opengauss_setup_hba_conf() { echo "host replication repuser $OG_SUBNET trust" fi } >> "$PGDATA/pg_hba.conf" - sed -i "/# IPv6 local connections:/a host all omm $OG_SUBNET trust" $PGDATA/pg_hba.conf + if [ -n "$SERVER_MODE" ]; then + sed -i "/# IPv6 local connections:/a host all omm $OG_SUBNET trust" $PGDATA/pg_hba.conf + fi } # append parameter to postgres.conf for connections