Bikeshed comments
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
# Are we running systemd?
|
||||
# Stop the daemon gracefully, and set up firewall rules to prevent network
|
||||
# leaks during upgrade.
|
||||
if which systemctl >/dev/null 2>&1 && systemctl is-system-running | grep -vq offline >/dev/null 2>&1; then
|
||||
# Is `mullvad-daemon.service` running?
|
||||
if systemctl status mullvad-daemon >/dev/null 2>&1; then
|
||||
mullvad-setup prepare-restart || true
|
||||
systemctl stop mullvad-daemon.service
|
||||
@@ -14,5 +14,5 @@ if which systemctl >/dev/null 2>&1 && systemctl is-system-running | grep -vq off
|
||||
fi
|
||||
fi
|
||||
|
||||
# Since we are upgrading mullvad-daemon, it will probably have current IP baked into itself.
|
||||
# Clear the cached API IP address.
|
||||
rm -f /var/cache/mullvad-vpn/api-ip-address.txt
|
||||
|
||||
Reference in New Issue
Block a user