单机容器pg_hba.conf配置问题
(cherry picked commit from <gitee.com//opengauss/openGauss-server/commit/a0b11e859876f5732352cc1423e2a22536a2fbca>
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user