314bece418
锁定后 /api/install/* 返回 403 属预期,不应判 FAIL。 Co-authored-by: Cursor <cursoragent@cursor.com>
1.1 KiB
1.1 KiB
nx 上帝菜单巡检第二轮修补
| 项 | 内容 |
|---|---|
| 日期 | 2026-06-06 |
| 动机 | 继续巡检 deploy/nx 链路:全新安装与持久化卷冲突、验收脚本误判、回滚网络 |
变更摘要
- 全新安装 vs nexus-state 卷:
FRESH_INSTALL时清除卷内旧.env/.install_locked;NEXUS_INSTALL_WIZARD_PENDING=1时 entrypoint 不恢复旧配置、从.bak恢复install.html。 - 回滚:
rollback_compose_upgrade在仍未接入1panel-network时返回失败。 - 验收脚本:
verify-1panel-install-wizard.sh已安装时期望install.html→ 404,并跳过 install API 检查(403 为预期)。 - nx 菜单:
ops_status区分已归档;菜单[2]全新安装对已安装栈二次确认。
涉及文件
docker/entrypoint.shdeploy/nexus-1panel.shdeploy/nxdeploy/verify-1panel-install-wizard.sh
验证
bash -n deploy/nx && bash -n deploy/nexus-1panel.sh && bash -n docker/entrypoint.sh
bash deploy/verify-1panel-install-wizard.sh # 已安装应 PASS install.html 404