33 lines
1.3 KiB
Markdown
33 lines
1.3 KiB
Markdown
# nx 上帝菜单巡检第七轮 — 安装向导守护 UI + 升级 cron 提示
|
||
|
||
| 项 | 内容 |
|
||
|----|------|
|
||
| 日期 | 2026-06-06 |
|
||
| 动机 | 安装完成页 Docker 清单仍写旧 cron 格式;guardian 结果无分级样式;`nx update` 后未交互提示安装 Layer 3 cron |
|
||
|
||
## 变更摘要
|
||
|
||
1. **install.html**:guardian 结果按 ✓/⚠/ℹ/✗ 着色;Docker 清单重排 Layer 1–5,新增「宿主机 cron」步骤(`nx cron` / `install_ops_cron.sh`);`hostDeployRoot` 动态显示宿主机路径。
|
||
2. **install.py**:`init-db` 与 state 返回 `host_deploy_root`(`NEXUS_HOST_ROOT` 或 `/opt/nexus`)。
|
||
3. **detect_deploy_runtime.sh**:`prompt_ops_cron_if_missing` — 交互终端缺 cron 时提示并可选一键安装。
|
||
4. **nexus-1panel.sh upgrade**:TTY 下升级完成后调用上述提示(非 TTY 仅打印建议)。
|
||
|
||
## 涉及文件
|
||
|
||
- `web/app/install.html`
|
||
- `server/api/install.py`
|
||
- `deploy/detect_deploy_runtime.sh`
|
||
- `deploy/nexus-1panel.sh`
|
||
|
||
## 迁移 / 重启
|
||
|
||
- 安装向导 UI 需 `nx update` 重建镜像后生效;host 脚本 `git pull` 即可。
|
||
|
||
## 验证
|
||
|
||
```bash
|
||
pytest tests/test_security_unit.py::test_configure_guardian_docker_mode_skips_supervisor -q
|
||
bash -n deploy/detect_deploy_runtime.sh deploy/nexus-1panel.sh
|
||
# 交互: sudo nx update(cron 已装时应显示 [INFO] 已含…)
|
||
```
|