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