Copy uninstall.sh to /data/truecloud-patch/ on install

Users who delete the cloned repo after install had no way to uninstall
without re-cloning. Now install.sh copies uninstall.sh to PATCH_DIR
alongside recover.sh, so the uninstall path is always the stable
/data/truecloud-patch/uninstall.sh. README updated to match.
This commit is contained in:
2026-06-15 16:56:18 +00:00
parent fa6f6605b0
commit 4c79403491
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ Get an API key from **System → API Keys → Add**.
## Uninstall
```bash
bash /path/to/truenas-truecloud-patch/uninstall.sh
bash /data/truecloud-patch/uninstall.sh
```
Removes the PREINIT hook, `sitecustomize.py`, and restores the original UI
+2 -1
View File
@@ -52,7 +52,8 @@ cp "$REPO_DIR/patch/patch_ui.py" "$PATCH_DIR/"
cp "$REPO_DIR/patch/apply.sh" "$PATCH_DIR/"
cp "$REPO_DIR/patch/create_task.py" "$PATCH_DIR/"
cp "$REPO_DIR/recover.sh" "$PATCH_DIR/"
chmod +x "$PATCH_DIR/apply.sh" "$PATCH_DIR/create_task.py" "$PATCH_DIR/recover.sh"
cp "$REPO_DIR/uninstall.sh" "$PATCH_DIR/"
chmod +x "$PATCH_DIR/apply.sh" "$PATCH_DIR/create_task.py" "$PATCH_DIR/recover.sh" "$PATCH_DIR/uninstall.sh"
echo "Done."
echo ""