fix(deploy): 验收脚本已安装时跳过 install API 检查

锁定后 /api/install/* 返回 403 属预期,不应判 FAIL。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Nexus Deploy
2026-06-06 21:53:43 +08:00
parent 687e059a86
commit 314bece418
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -221,6 +221,10 @@ check_http_local() {
}
check_install_api() {
if [[ "${INSTALL_WIZARD_ARCHIVED:-false}" == true ]]; then
pass "安装 API 已关闭(向导已锁定,/api/install/* 返回 403 为预期)"
return 0
fi
local status env_json
status="$(curl -sf http://127.0.0.1:8600/api/install/status 2>/dev/null || true)"
if [[ -n "$status" ]]; then
@@ -9,7 +9,7 @@
1. **全新安装 vs nexus-state 卷**`FRESH_INSTALL` 时清除卷内旧 `.env`/`.install_locked``NEXUS_INSTALL_WIZARD_PENDING=1` 时 entrypoint 不恢复旧配置、从 `.bak` 恢复 `install.html`
2. **回滚**`rollback_compose_upgrade` 在仍未接入 `1panel-network` 时返回失败。
3. **验收脚本**`verify-1panel-install-wizard.sh` 已安装时期望 `install.html` → 404。
3. **验收脚本**`verify-1panel-install-wizard.sh` 已安装时期望 `install.html` → 404,并跳过 install API 检查(403 为预期)
4. **nx 菜单**`ops_status` 区分已归档;菜单 `[2]` 全新安装对已安装栈二次确认。
## 涉及文件