Add uninstall.sh for one-click removal
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -254,11 +254,29 @@ docker compose up -d
|
||||
|
||||
---
|
||||
|
||||
## 九、卸载
|
||||
## 九、一键卸载
|
||||
|
||||
```bash
|
||||
cd /opt/cloud-browser
|
||||
docker compose down
|
||||
cd /
|
||||
rm -rf /opt/cloud-browser
|
||||
bash /opt/cloud-browser/uninstall.sh
|
||||
```
|
||||
|
||||
按提示输入 `yes` 确认。将自动:
|
||||
|
||||
1. 停止并删除 Docker 容器
|
||||
2. 删除本地构建的镜像
|
||||
3. 删除 `/opt/cloud-browser` 目录(含账号数据)
|
||||
|
||||
跳过确认直接删除:
|
||||
|
||||
```bash
|
||||
bash /opt/cloud-browser/uninstall.sh -y
|
||||
```
|
||||
|
||||
若目录已被删,可从仓库单独下载脚本执行(需指定安装路径时手动删除 `/opt/cloud-browser`)。
|
||||
|
||||
重新安装:
|
||||
|
||||
```bash
|
||||
git clone https://git.bz121.com/dekun/cloud-browser.git /opt/cloud-browser
|
||||
bash /opt/cloud-browser/deploy.sh
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user