!6405 修复单机容器pg_hba.conf配置问题

Merge pull request !6405 from zzh/cherry-pick-1727059487
This commit is contained in:
opengauss_bot
2024-09-23 12:08:55 +00:00
committed by Gitee

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