Fix install-scripts, and bundle relay list
This commit is contained in:
25
mullvad-vpn-daemon/mullvad-vpn-daemon-systemd.post-upgrade
Normal file
25
mullvad-vpn-daemon/mullvad-vpn-daemon-systemd.post-upgrade
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eu
|
||||
|
||||
echo "mullvad-systemd post-upgrade"
|
||||
# Are we running systemd?
|
||||
if which systemctl &> /dev/null && systemctl is-system-running | grep -vq offline &> /dev/null; then
|
||||
echo "systemctl exists and is running"
|
||||
# Does `mullvad-daemon.service` exist?
|
||||
if systemctl list-unit-files mullvad-daemon.service &> /dev/null; then
|
||||
echo "enable mullvad-daemon"
|
||||
systemctl enable "/usr/lib/systemd/system/mullvad-daemon.service"
|
||||
echo "start mullvad-daemon"
|
||||
systemctl start mullvad-daemon.service || echo "Failed to start mullvad-daemon.service"
|
||||
echo "enable mullvad-early-boot-blocking"
|
||||
systemctl enable "/usr/lib/systemd/system/mullvad-early-boot-blocking.service"
|
||||
else
|
||||
echo "mullvad-daemon.service does not exist!!"
|
||||
systemctl list-unit-files mullvad-daemon.service
|
||||
fi
|
||||
else
|
||||
echo "systemctl does not exit!"
|
||||
fi
|
||||
|
||||
echo "sleep 5"
|
||||
sleep 5
|
||||
Reference in New Issue
Block a user