Files
Nexus/docs/changelog/2026-06-07-health-monitor-quote-fix.md
T
2026-07-08 22:31:31 +08:00

21 lines
567 B
Markdown

# 2026-06-07 — health_monitor.sh 引号语法修复(Layer 3 巡检)
## 摘要
修复 `normalize_env_value``\"` 替换写法导致 bash 解析失败,Layer 3 cron 巡检脚本无法执行。
## 动机
生产 `/var/log/nexus_health.log``unexpected EOF while looking for matching '"'`,Telegram 告警与自动重启逻辑均未运行。
## 变更
- `deploy/health_monitor.sh``${v//\\"/\"}``${v//\\\"/\"}`
## 验证
```bash
bash -n deploy/health_monitor.sh
sudo NEXUS_DEPLOY_DIR=/opt/nexus bash deploy/health_monitor.sh # exit 0
```