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:
@@ -147,7 +147,7 @@ Get an API key from **System → API Keys → Add**.
|
|||||||
## Uninstall
|
## Uninstall
|
||||||
|
|
||||||
```bash
|
```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
|
Removes the PREINIT hook, `sitecustomize.py`, and restores the original UI
|
||||||
|
|||||||
+2
-1
@@ -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/apply.sh" "$PATCH_DIR/"
|
||||||
cp "$REPO_DIR/patch/create_task.py" "$PATCH_DIR/"
|
cp "$REPO_DIR/patch/create_task.py" "$PATCH_DIR/"
|
||||||
cp "$REPO_DIR/recover.sh" "$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 "Done."
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user