Skip to content

Instantly share code, notes, and snippets.

@abn
Last active March 7, 2024 10:25
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abn/2a41cd924553d457e36f29a71b9b8fc0 to your computer and use it in GitHub Desktop.
Save abn/2a41cd924553d457e36f29a71b9b8fc0 to your computer and use it in GitHub Desktop.
Jigsaw Outline: Uninstall (purge) the persistent thing
#!/usr/bin/env bash
# this is not extensively tested, worked for personal use case.
# script is intentionally aggressive, use at your own peril :)
# reference: https://github.com/Jigsaw-Code/outline-client/issues/648
function uninstall-outline() {
set -x
sudo systemctl disable --now outline_proxy_controller
sudo rm -rf \
/etc/systemd/system/outline_proxy_controller.service \
/usr/local/sbin/OutlineProxyController
rm -rf \
~/.config/Outline/ \
~/.cache/outline-client-updater \
~/.config/autostart/Outline-{Client,Manager}.AppImage.desktop
locate Outline-{Client,Manager}.AppImage | xargs -I {} rm -rf {}
find ~/.local/share/icons \
-name "appimagekit-outline-manager.png" \
-o -name "appimagekit-outline-client.png" \
-delete
}
read -r -p "Are you sure you want to remove Jigsaw Outline? [y/N] " response
{ [[ "$response" =~ ^([yY][eE][sS]|[yY])$ ]] && uninstall-outline; } \
|| echo "I got excited for nothing. :("
@abn
Copy link
Author

abn commented May 4, 2021

One-liner (use at your own risk).

bash -c "$(curl -sL https://gist.githubusercontent.com/abn/2a41cd924553d457e36f29a71b9b8fc0/raw)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment