wip delete me

This commit is contained in:
Joakim Hulthe
2026-04-20 22:28:17 +02:00
parent 29043fedc1
commit 31152057d6
5 changed files with 6 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
#!/usr/bin/env bash
set -eu
echo "mullvad post-deinstall"
rm -r --interactive=never /var/log/mullvad-vpn/ || \
echo "Failed to remove mullvad-vpn logs"
rm -r --interactive=never /var/cache/mullvad-vpn/ || \

View File

@@ -1,6 +1,7 @@
#!/usr/bin/env bash
set -eu
echo "mullvad post-install"
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"

View File

@@ -1,6 +1,7 @@
#!/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"

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -eu
echo "Running prerm."
echo "mullvad pre-deinstall"
is_number_re='^[0-9]+$'
# Check if we're running during an upgrade step on Fedora
# https://fedoraproject.org/wiki/Packaging:Scriptlets#Syntax

View File

@@ -1,6 +1,7 @@
#!/usr/bin/env bash
set -eu
echo "mullvad pre-upgrade"
if which systemctl &> /dev/null && systemctl is-system-running | grep -vq offline &> /dev/null; then
if systemctl status mullvad-daemon &> /dev/null; then
mullvad-setup prepare-restart || true