Files
Nexus/docs/changelog/2026-06-06-nx-god-menu-audit-round6-guardian-verify-cron.md
2026-07-08 22:31:31 +08:00

36 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 上帝菜单巡检第六轮 — 守护配置对齐 + 验收 cron/备份
| 项 | 内容 |
|----|------|
| 日期 | 2026-06-06 |
| 动机 | 安装向导 Docker 守护文案仍指向容器内 `/app`;裸机 cron 格式过时;验收脚本未检查 Layer 3 cron 与 MySQL 备份 |
## 变更摘要
1. **install.py**`_host_deploy_root` + `_append_ops_cron_results`Docker 守护提示 `install_ops_cron` / `nx cron`;裸机 cron 与第四轮脚本同格式(含 db_backup)。
2. **docker-compose.prod.yml**:注入 `NEXUS_HOST_ROOT`(默认 `/opt/nexus`)。
3. **nexus-1panel.sh upgrade**:同步 `NEXUS_HOST_ROOT``.env.prod`
4. **verify-1panel-install-wizard.sh**:已安装时检查 crontab、备份脚本与备份文件;HTTP 探测改用 `NEXUS_PUBLISH_PORT`
## 涉及文件
- `server/api/install.py`
- `docker/docker-compose.prod.yml`
- `docker/.env.prod.example`
- `deploy/nexus-1panel.sh`
- `deploy/verify-1panel-install-wizard.sh`
- `tests/test_security_unit.py`
## 迁移 / 重启
- `git pull``nx update` 使容器获得 `NEXUS_HOST_ROOT` 环境变量(可选)。
- 已安装主机若缺 cron`sudo nx cron`
## 验证
```bash
pytest tests/test_security_unit.py::test_configure_guardian_docker_mode_skips_supervisor -q
bash -n deploy/verify-1panel-install-wizard.sh
sudo bash deploy/verify-1panel-install-wizard.sh
```