Wip install scripts

This commit is contained in:
Joakim Hulthe
2026-04-23 10:23:16 +02:00
parent 31152057d6
commit 53e97a6dc2
4 changed files with 11 additions and 5 deletions

View File

@@ -2,7 +2,9 @@
set -eu
echo "mullvad pre-upgrade"
# 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