diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2018-05-22 08:57:27 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2018-05-22 09:03:45 +0200 |
| commit | 26b3e3473220984254afcac36f1c1916f33679e9 (patch) | |
| tree | 6ffe6f60c6c7637bfeb1286c1dcbe1cca61bb2ad /linux/uninstall_script.sh | |
| parent | 022b3e0e52d2ca1992debbb0b428ba0ab80523fe (diff) | |
| download | mullvadvpn-26b3e3473220984254afcac36f1c1916f33679e9.tar.xz mullvadvpn-26b3e3473220984254afcac36f1c1916f33679e9.zip | |
Move linux scripts into dist-assets
Diffstat (limited to 'linux/uninstall_script.sh')
| -rw-r--r-- | linux/uninstall_script.sh | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/linux/uninstall_script.sh b/linux/uninstall_script.sh deleted file mode 100644 index b4f4671b92..0000000000 --- a/linux/uninstall_script.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env bash -set -eu - -function remove_systemd_unit { - systemctl stop mullvad-daemon.service || \ - echo "Failed to stop mullvad-daemon service" - systemctl disable mullvad-daemon.service || \ - echo "Failed to disable mullvad-daemon service" -} - -function remove_logs_and_cache { - rm -rf /var/log/mullvad-daemon/ || \ - echo "Failed to remove mullvad-daemon logs" - rm -rf /var/cache/mullvad-daemon/ || \ - echo "Failed to remove mullvad-daemon cache" -} - -function remove_config { - rm -rf /etc/mullvad-daemon || \ - echo "Failed to remove mullvad-daemon config" -} - -# checking what kind of an action is taking place -case $@ in - # apt purge passes "purge" - "purge") - remove_logs_and_cache - remove_config - ;; - # apt remove passes "remove" - "remove") - remove_systemd_unit - ;; - # yum remove passes a 0 - "0") - remove_logs_and_cache - remove_systemd_unit - remove_config - ;; -esac |
