Bikeshed comments

This commit is contained in:
Joakim Hulthe
2026-04-23 15:35:00 +02:00
parent 8c8579b3f6
commit 43338c3fd4
4 changed files with 12 additions and 17 deletions

View File

@@ -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