diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2017-12-13 12:56:55 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2017-12-13 12:56:55 +0100 |
| commit | 533fc9c8341f26f5729e957ba63d5181f34d16fa (patch) | |
| tree | 7b75b3bd7ae0f4864980a3ee64a57c4ba7a0f17b | |
| parent | cbfe20817749869092e79f6cc0d13a64689915ef (diff) | |
| parent | 1ec3a6e7e7a6a78322eb9848556019a103891de0 (diff) | |
| download | mullvadvpn-533fc9c8341f26f5729e957ba63d5181f34d16fa.tar.xz mullvadvpn-533fc9c8341f26f5729e957ba63d5181f34d16fa.zip | |
Merge branch 'uninstall-script'
| -rwxr-xr-x | uninstall.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/uninstall.sh b/uninstall.sh new file mode 100755 index 0000000000..ed73c469d0 --- /dev/null +++ b/uninstall.sh @@ -0,0 +1,30 @@ +#!/usr/bin/env bash + +set -ux + +function uninstall_linux { + echo "Uninstalling for Linux" + sudo rm -r ~/.cache/mullvad-daemon \ + ~/.cache/mullvad-daemon/ \ + ~/.config/MullvadVPN/ \ + /root/.cache/mullvad-daemon/ \ + /root/.config/mullvad-daemon +} + + +function uninstall_macos { + echo "Uninstalling for macOS" + sudo rm -r /Applications/MullvadVPN.app \ + ~/Library/Logs/MullvadVPN \ + ~/Library/Caches/mullvad-daemon \ + ~/Library/Application\ Support/mullvad-daemon \ + ~/Library/Application\ Support/MullvadVPN +} + +echo "Uninstalling Mullvad VPN" +case "$(uname -s)" in + Linux*) uninstall_linux;; + Darwin*) uninstall_macos;; + *) echo "Unsupported platform"; exit 1 +esac + |
