Files
Nexus/docs/changelog/2026-06-07-health-monitor-quote-fix.md
T
Nexus Agent 9337f37da8 fix(files,deploy): 文件上传字段名与 Layer3 巡检脚本
后端同时接受 file/files 并支持多文件 SFTP 上传;修复 health_monitor.sh 引号语法使 Layer 3 cron 可运行。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-07 23:00:01 +08:00

567 B

2026-06-07 — health_monitor.sh 引号语法修复(Layer 3 巡检)

摘要

修复 normalize_env_value\" 替换写法导致 bash 解析失败,Layer 3 cron 巡检脚本无法执行。

动机

生产 /var/log/nexus_health.logunexpected EOF while looking for matching '"',Telegram 告警与自动重启逻辑均未运行。

变更

  • deploy/health_monitor.sh${v//\\"/\"}${v//\\\"/\"}

验证

bash -n deploy/health_monitor.sh
sudo NEXUS_DEPLOY_DIR=/opt/nexus bash deploy/health_monitor.sh  # exit 0