Files
Nexus/docs/changelog/2026-06-04-1panel-upgrade-script.md
T
Nexus Deploy 2f830424a4 feat(deploy): unified 1Panel script with profiles and port checks
Merge install/upgrade into nexus-1panel.sh with 1c4g/2c8g/4c16g resource
profiles; preflight Gitea and firewall hints; post-install HTTPS health probe.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-05 22:59:47 +08:00

35 lines
931 B
Markdown

# Changelog — 1Panel Docker 一键升级脚本
## 摘要
新增 `deploy/upgrade-1panel-docker.sh`:检查 Gitea 更新、可选 MySQL 备份、`git reset --hard`、Compose 重建与健康检查。
## 动机
私人 Gitea 仓库需在服务器上一键拉取并部署新版本,与安装脚本配套。
## 涉及文件
- `deploy/upgrade-1panel-docker.sh`
- `deploy/install-1panel-docker.sh` — 注释指向升级脚本
- `SECRETS.md``/root/.nexus-deploy.env` 与升级命令
- `docker/README.md`
## 用法
```bash
# 持久化 token(可选)
echo 'NEXUS_GITEA_TOKEN=...' > /root/.nexus-deploy.env && chmod 600 /root/.nexus-deploy.env
bash /opt/nexus/deploy/upgrade-1panel-docker.sh --check
bash /opt/nexus/deploy/upgrade-1panel-docker.sh
```
## 验证
`bash -n deploy/upgrade-1panel-docker.sh`
## 回滚
`git reset --hard <旧commit>` + `compose up -d --build`;或恢复 `nexus-before-upgrade-*.sql.gz`