summarylogtreecommitdiffstats
path: root/mullvad-vpn-cli.install
diff options
context:
space:
mode:
authorMark Wagie2021-12-01 16:23:09 -0700
committerMark Wagie2021-12-01 16:23:09 -0700
commit8d44daeafbbd013063b5975101d51e8b931e990c (patch)
tree5671473e6f612d3e9d3dfa95c054666815d95b10 /mullvad-vpn-cli.install
parentc3ac5f53f1706128ac9a3c8a9e4c21d369f30803 (diff)
downloadaur-8d44daeafbbd013063b5975101d51e8b931e990c.tar.gz
2021.6
Diffstat (limited to 'mullvad-vpn-cli.install')
-rw-r--r--mullvad-vpn-cli.install57
1 files changed, 0 insertions, 57 deletions
diff --git a/mullvad-vpn-cli.install b/mullvad-vpn-cli.install
deleted file mode 100644
index 9e18d553ed80..000000000000
--- a/mullvad-vpn-cli.install
+++ /dev/null
@@ -1,57 +0,0 @@
-pre_install() {
- if systemctl status mullvad-daemon &> /dev/null; then
- echo 'Stopping & disabling Mullvad VPN daemon...'
- systemctl disable --now mullvad-daemon
- fi
-
- rm -f /var/cache/mullvad-vpn/relays.json || true
-}
-
-post_install() {
- chmod u+s "/usr/bin/mullvad-exclude"
- echo 'Enabling Mullvad VPN daemon...'
- systemctl enable mullvad-daemon
- echo -----------------------------------------------------------------------------------
- echo 'Mullvad daemon enabled but not started because the CLI might be used remotely.'
- echo 'Be aware that the daemon will be started after a reboot.'
- echo 'Please start the daemon now if you want to:'
- echo ''
- echo 'systemctl start mullvad-daemon.service'
- echo -----------------------------------------------------------------------------------
-}
-
-pre_upgrade() {
- echo 'Stopping Mullvad VPN daemon...'
- systemctl stop mullvad-daemon
-
- rm -f /var/cache/mullvad-vpn/relays.json || true
-}
-
-post_upgrade() {
- chmod u+s "/usr/bin/mullvad-exclude"
- echo 'Restarting Mullvad VPN daemon...'
- systemctl daemon-reload
- systemctl start mullvad-daemon
-}
-
-pre_remove() {
- /usr/bin/mullvad account clear-history || echo "Failed to remove leftover WireGuard keys"
-
- # the user might've disabled or stopped the service themselves already
- echo 'Making sure the Mullvad VPN daemon is stopped & disabled...'
- systemctl stop mullvad-daemon || true
- systemctl disable mullvad-daemon || true
-
- /opt/mullvad-vpn-cli/mullvad-setup reset-firewall || true
-}
-
-post_remove() {
- echo -------------------------------------------------------------
- echo 'Optionally remove logs & cache:'
- echo 'sudo rm -rf /var/log/mullvad-vpn/'
- echo 'sudo rm -rf /var/cache/mullvad-vpn/'
- echo ''
- echo 'Optionally remove config:'
- echo 'sudo rm /etc/mullvad-vpn/settings.json'
- echo -------------------------------------------------------------
-}