Fix install-scripts, and bundle relay list

This commit is contained in:
Joakim Hulthe authored and Joakim Hulthe committed 2026-04-23 11:42:08 +02:00
1 parent 29043fedc1
commit 7af09af8d1
7 files changed
+55 -28

No files matched your search

@@ -1,10 +1,7 @@
#!/usr/bin/env bash
set -eu
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
# Overwrite the cached relay list with the one embedded in the package.
mkdir -p /var/cache/mullvad-vpn \
&& cp /usr/share/mullvad-vpn/relays.json /var/cache/mullvad-vpn/relays.json \
|| echo "failed to install /var/cache/mullvad-vpn/relays.json"