diff options
Diffstat (limited to 'linux')
| -rw-r--r-- | linux/install_script.sh | 4 | ||||
| -rw-r--r-- | linux/mullvad-daemon.service | 9 | ||||
| -rw-r--r-- | linux/uninstall_script.sh | 40 |
3 files changed, 0 insertions, 53 deletions
diff --git a/linux/install_script.sh b/linux/install_script.sh deleted file mode 100644 index ea03f94c91..0000000000 --- a/linux/install_script.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash -set -eu -systemctl enable mullvad-daemon.service -systemctl start mullvad-daemon.service diff --git a/linux/mullvad-daemon.service b/linux/mullvad-daemon.service deleted file mode 100644 index 83c3032031..0000000000 --- a/linux/mullvad-daemon.service +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=Mullvad VPN daemon -Wants=network.target - -[Service] -ExecStart="/opt/Mullvad VPN/resources/mullvad-daemon" -v --disable-stdout-timestamps --log /var/log/mullvad-daemon/daemon.log --tunnel-log /var/log/mullvad-daemon/openvpn.log - -[Install] -WantedBy=multi-user.target 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 |
