summaryrefslogtreecommitdiffhomepage
path: root/dist-assets/linux/before-install.sh
blob: ebaac51baf1ca797e86650b597d6589787aac07a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash
set -eu

if which systemctl &> /dev/null; then
    if systemctl status mullvad-daemon &> /dev/null; then
        /opt/Mullvad\ VPN/resources/mullvad-setup prepare-restart || true
        systemctl stop mullvad-daemon.service
        systemctl disable mullvad-daemon.service
    fi
fi

rm -f /var/cache/mullvad-vpn/relays.json || true