Files
Nexus/docs/changelog/2026-06-06-nx-god-menu-audit-round7-install-wizard-cron-prompt.md
T
Nexus Agent e5d482264d fix(install): 向导守护 UI 与升级后 cron 交互提示
Docker 完成页展示 Layer 3 cron 步骤与 host_deploy_root;TTY 下 nx update 可一键安装巡检/备份 crontab。

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

1.3 KiB
Raw Blame History

nx 上帝菜单巡检第七轮 — 安装向导守护 UI + 升级 cron 提示

内容
日期 2026-06-06
动机 安装完成页 Docker 清单仍写旧 cron 格式;guardian 结果无分级样式;nx update 后未交互提示安装 Layer 3 cron

变更摘要

  1. install.htmlguardian 结果按 ✓/⚠//✗ 着色;Docker 清单重排 Layer 1–5,新增「宿主机 cron」步骤(nx cron / install_ops_cron.sh);hostDeployRoot 动态显示宿主机路径。
  2. install.pyinit-db 与 state 返回 host_deploy_rootNEXUS_HOST_ROOT/opt/nexus)。
  3. detect_deploy_runtime.shprompt_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 即可。

验证

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] 已含…)