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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clouddreamai-cicd-setup",
3
- "version": "1.5.37",
3
+ "version": "1.5.38",
4
4
  "description": "CloudDreamAI GitLab CI/CD 自动配置工具 - 支持 NestJS/Vue/React 项目的一键 CI/CD 配置",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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 restart -D /www/server/pgsql/data 2>/dev/null
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