Fix install-scripts, and bundle relay list

This commit is contained in:
Joakim Hulthe
2026-04-20 22:28:17 +02:00
committed by Joakim Hulthe
parent 29043fedc1
commit 7af09af8d1
7 changed files with 55 additions and 28 deletions

View File

@@ -1,18 +1,6 @@
#!/usr/bin/env bash
set -eu
echo "Running prerm."
is_number_re='^[0-9]+$'
# Check if we're running during an upgrade step on Fedora
# https://fedoraproject.org/wiki/Packaging:Scriptlets#Syntax
if [[ "$1" =~ $is_number_re ]] && [ "$1" -gt 0 ]; then
exit 0;
fi
if [[ "$1" == "upgrade" ]]; then
exit 0;
fi
# the user might've disabled or stopped the service themselves already
systemctl stop mullvad-daemon.service || true
systemctl disable mullvad-daemon.service || true