Files
Nexus/docs/changelog/2026-06-06-nx-god-menu-audit-round7-install-wizard-cron-prompt.md
2026-07-08 22:31:31 +08:00

33 lines
1.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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 updatecron 已装时应显示 [INFO] 已含…)
```