clouddreamai-cicd-setup 1.5.43 → 1.5.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -385,10 +385,10 @@ create_database() {
|
|
|
385
385
|
fi
|
|
386
386
|
|
|
387
387
|
if [ -f "$PG_HBA" ]; then
|
|
388
|
-
#
|
|
389
|
-
if ! grep -q "
|
|
390
|
-
echo "配置 PostgreSQL
|
|
391
|
-
echo "host all all
|
|
388
|
+
# 允许所有 IP 连接(Docker 网段可能是 172.17.x.x、172.26.x.x 等,直接放开最简单)
|
|
389
|
+
if ! grep -q "0.0.0.0/0" "$PG_HBA"; then
|
|
390
|
+
echo "配置 PostgreSQL 允许外部连接..."
|
|
391
|
+
echo "host all all 0.0.0.0/0 md5" >> "$PG_HBA"
|
|
392
392
|
PG_RESTART_NEEDED=true
|
|
393
393
|
fi
|
|
394
394
|
fi
|