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:
+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/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 ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user