pg_hba.conf文件缺少白名单配置

This commit is contained in:
zzh
2024-09-10 21:17:57 +08:00
parent fea5d62364
commit f2e7f7501f

View File

@ -259,6 +259,7 @@ 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
}
# append parameter to postgres.conf for connections