clouddreamai-cicd-setup 1.5.37 → 1.5.38
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
|
@@ -395,7 +395,7 @@ create_database() {
|
|
|
395
395
|
|
|
396
396
|
if [ "$PG_RESTART_NEEDED" = true ]; then
|
|
397
397
|
echo "重启 PostgreSQL 服务..."
|
|
398
|
-
systemctl restart postgresql 2>/dev/null || /etc/init.d/postgresql restart 2>/dev/null || /www/server/pgsql/bin/pg_ctl
|
|
398
|
+
systemctl restart postgresql 2>/dev/null || /etc/init.d/postgresql restart 2>/dev/null || sudo -u postgres /www/server/pgsql/bin/pg_ctl reload -D /www/server/pgsql/data 2>/dev/null || true
|
|
399
399
|
sleep 2
|
|
400
400
|
echo "✓ PostgreSQL 配置已更新"
|
|
401
401
|
fi
|