summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2020-03-09 12:36:57 +0100
committerDavid Lönnhager <david.l@mullvad.net>2020-03-17 12:27:40 +0100
commit184e8d783c67cbf6c2216198c2876990720d9ec2 (patch)
tree824b25644ae456b4adb3f30cbcc8d0d9e9c897e3
parent6dcc1295faa8165fb0fb02a8617fcb774c7ab507 (diff)
downloadmullvadvpn-184e8d783c67cbf6c2216198c2876990720d9ec2.tar.xz
mullvadvpn-184e8d783c67cbf6c2216198c2876990720d9ec2.zip
Don't stop the daemon in before_remove.sh on Debian, if upgrading
-rw-r--r--dist-assets/linux/before-remove.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/dist-assets/linux/before-remove.sh b/dist-assets/linux/before-remove.sh
index 2cb0c9afcd..cb4b44bfa1 100644
--- a/dist-assets/linux/before-remove.sh
+++ b/dist-assets/linux/before-remove.sh
@@ -9,6 +9,11 @@ if [[ "$1" =~ $is_number_re ]] && [ $1 -gt 0 ]; then
exit 0;
fi
+if [[ "$1" == "upgrade" ]]; then
+ echo not running
+ exit 0;
+fi
+
if which systemctl &> /dev/null; then
# the user might've disabled or stopped the service themselves already
systemctl stop mullvad-daemon.service || true