Fix install-scripts, and bundle relay list
This commit is contained in:
12
mullvad-vpn-daemon/mullvad-vpn-daemon-systemd.post-upgrade
Normal file
12
mullvad-vpn-daemon/mullvad-vpn-daemon-systemd.post-upgrade
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/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
|
||||
# Does `mullvad-daemon.service` exist?
|
||||
if systemctl list-unit-files mullvad-daemon.service &> /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
|
||||
Reference in New Issue
Block a user