From 4c79403491ac723991e656d82c30ccb4f9811dee Mon Sep 17 00:00:00 2001 From: sudolulo Date: Mon, 15 Jun 2026 16:56:18 +0000 Subject: [PATCH] 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. --- README.md | 2 +- install.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 03a0296..0dcacff 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/install.sh b/install.sh index 1f78325..ef181a5 100755 --- a/install.sh +++ b/install.sh @@ -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 ""