单机容器pg_hba.conf配置问题

(cherry picked commit from <gitee.com//opengauss/openGauss-server/commit/a0b11e859876f5732352cc1423e2a22536a2fbca>
This commit is contained in:
zzh
2024-09-20 15:07:07 +08:00
parent 92a5ac8935
commit 5f7e94c347

View File

@ -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