Fix install-scripts, and bundle relay list
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eu
|
||||
|
||||
# Are we running systemd?
|
||||
if which systemctl &> /dev/null && systemctl is-system-running | grep -vq offline &> /dev/null; then
|
||||
# Is `mullvad-daemon.service` running?
|
||||
if systemctl status mullvad-daemon &> /dev/null; then
|
||||
mullvad-setup prepare-restart || true
|
||||
systemctl stop mullvad-daemon.service
|
||||
@@ -12,5 +14,5 @@ if which systemctl &> /dev/null && systemctl is-system-running | grep -vq offlin
|
||||
fi
|
||||
fi
|
||||
|
||||
rm -f /var/cache/mullvad-vpn/relays.json
|
||||
# Since we are upgrading mullvad-daemon, it will probably have current IP baked into itself.
|
||||
rm -f /var/cache/mullvad-vpn/api-ip-address.txt
|
||||
|
||||
Reference in New Issue
Block a user