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

This commit is contained in:
zzh
2024-09-11 09:03:56 +08:00
parent bead01529d
commit 494b4e1354

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