Files
mullvad-vpn-alpine/mullvad-vpn-daemon/mullvad-vpn-daemon.post-upgrade
Joakim Hulthe 31152057d6 wip delete me
2026-04-20 22:28:17 +02:00

12 lines
477 B
Bash

#!/usr/bin/env bash
set -eu
echo "mullvad post-upgrade"
if which systemctl &> /dev/null && systemctl is-system-running | grep -vq offline &> /dev/null; then
if systemctl status mullvad-daemon &> /dev/null; then
systemctl enable "/usr/lib/systemd/system/mullvad-daemon.service"
systemctl start mullvad-daemon.service || echo "Failed to start mullvad-daemon.service"
systemctl enable "/usr/lib/systemd/system/mullvad-early-boot-blocking.service"
fi
fi