Fix install-scripts, and bundle relay list

This commit is contained in:
Joakim Hulthe
2026-04-20 22:28:17 +02:00
committed by Joakim Hulthe
parent 29043fedc1
commit 7af09af8d1
7 changed files with 55 additions and 28 deletions

View File

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