Update daemon to 2026.3-beta1 and make scripts less "presumptous"
This commit is contained in:
@@ -1,18 +1,6 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
# 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
|
||||
if systemctl status mullvad-daemon >/dev/null 2>&1; then
|
||||
mullvad-setup prepare-restart || true
|
||||
systemctl stop mullvad-daemon.service
|
||||
systemctl disable mullvad-daemon.service
|
||||
systemctl disable mullvad-early-boot-blocking.service || true
|
||||
cp /var/log/mullvad-vpn/daemon.log /var/log/mullvad-vpn/old-install-daemon.log \
|
||||
|| echo "Failed to copy old daemon log"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Clear the cached API IP address.
|
||||
# The new daemon should contain an up-to-date address.
|
||||
rm -f /var/cache/mullvad-vpn/api-ip-address.txt
|
||||
|
||||
Reference in New Issue
Block a user