Quellcode durchsuchen

修复 hxcs 同步脚本收尾验证

修复 sync-to-hxcs-prod.sh 在 files-only 模式末尾调用 sync_jbpm_hibernate_cfg 时因为第三个参数缺失而中断的问题,避免静态资源同步完成后配置同步和重启步骤失败。

补充 verify-only 对 CKEditor 主文件、上传适配器和文章编辑器组件脚本关键字的检查,避免富文本资源缺失时验证脚本漏报。

Validation:

- bash -n local-run/bin/sync-to-hxcs-prod.sh

- curl 验证 hxcs CKEditor 主文件、上传适配器均返回 200

- 浏览器验证试运行文章录入弹窗已渲染 CKEditor 富文本编辑器
非繁 vor 4 Monaten
Ursprung
Commit
ef1bee64b2
1 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
  1. 4 1
      local-run/bin/sync-to-hxcs-prod.sh

+ 4 - 1
local-run/bin/sync-to-hxcs-prod.sh

@@ -234,7 +234,7 @@ sync_static_files() {
 sync_jbpm_hibernate_cfg() {
 sync_jbpm_hibernate_cfg() {
 	local host="$1"
 	local host="$1"
 	local container="$2"
 	local container="$2"
-	local pass="$3"
+	local pass="${3:-}"
 	log "同步 jbpm.hibernate.cfg.xml → WEB-INF/classes @ ${host}..."
 	log "同步 jbpm.hibernate.cfg.xml → WEB-INF/classes @ ${host}..."
 	local script
 	local script
 	if [[ "${host}" == "${WEB_HOST}" ]]; then pass="W3b\"2026)&)^"; else pass="W3B2026)&)^"; fi
 	if [[ "${host}" == "${WEB_HOST}" ]]; then pass="W3b\"2026)&)^"; else pass="W3B2026)&)^"; fi
@@ -317,6 +317,9 @@ WHERE p.login_name = 'admin@os.com'
 "
 "
 	log "验证 HTTP..."
 	log "验证 HTTP..."
 	curl -sI -m 15 "https://hxcs.feifan.net/apps/workbench/" | head -3
 	curl -sI -m 15 "https://hxcs.feifan.net/apps/workbench/" | head -3
+	curl -sI -m 15 "https://hxcs.feifan.net/apps/space/plug-in/ckeditor5/build/ckeditor.js" | head -3
+	curl -sI -m 15 "https://hxcs.feifan.net/apps/space/plug-in/ckeditor5/src/plugins/upload/src/myUploadAdapter.js?v=20260628-pdf" | head -3
+	curl -s -m 15 "https://hxcs.feifan.net/js/space.vue.pc.subassembly.js" | grep -E "space-editor-wrap|ClassicEditor|图片质量压缩" | head -3
 	curl -sI -m 15 "https://hxcs.feifan.net/web/upload/ffkj-template/college-red-index.jsp" | head -3
 	curl -sI -m 15 "https://hxcs.feifan.net/web/upload/ffkj-template/college-red-index.jsp" | head -3
 	curl -sI -m 15 "https://hxcs.feifan.net/web/upload/ffkj-template/screen-index.jsp" | head -3
 	curl -sI -m 15 "https://hxcs.feifan.net/web/upload/ffkj-template/screen-index.jsp" | head -3
 }
 }