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