wip delete me
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
|
echo "mullvad post-deinstall"
|
||||||
|
|
||||||
rm -r --interactive=never /var/log/mullvad-vpn/ || \
|
rm -r --interactive=never /var/log/mullvad-vpn/ || \
|
||||||
echo "Failed to remove mullvad-vpn logs"
|
echo "Failed to remove mullvad-vpn logs"
|
||||||
rm -r --interactive=never /var/cache/mullvad-vpn/ || \
|
rm -r --interactive=never /var/cache/mullvad-vpn/ || \
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
|
echo "mullvad post-install"
|
||||||
if which systemctl &> /dev/null && systemctl is-system-running | grep -vq offline &> /dev/null; then
|
if which systemctl &> /dev/null && systemctl is-system-running | grep -vq offline &> /dev/null; then
|
||||||
if systemctl status mullvad-daemon &> /dev/null; then
|
if systemctl status mullvad-daemon &> /dev/null; then
|
||||||
systemctl enable "/usr/lib/systemd/system/mullvad-daemon.service"
|
systemctl enable "/usr/lib/systemd/system/mullvad-daemon.service"
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
|
echo "mullvad post-upgrade"
|
||||||
if which systemctl &> /dev/null && systemctl is-system-running | grep -vq offline &> /dev/null; then
|
if which systemctl &> /dev/null && systemctl is-system-running | grep -vq offline &> /dev/null; then
|
||||||
if systemctl status mullvad-daemon &> /dev/null; then
|
if systemctl status mullvad-daemon &> /dev/null; then
|
||||||
systemctl enable "/usr/lib/systemd/system/mullvad-daemon.service"
|
systemctl enable "/usr/lib/systemd/system/mullvad-daemon.service"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
echo "Running prerm."
|
echo "mullvad pre-deinstall"
|
||||||
is_number_re='^[0-9]+$'
|
is_number_re='^[0-9]+$'
|
||||||
# Check if we're running during an upgrade step on Fedora
|
# Check if we're running during an upgrade step on Fedora
|
||||||
# https://fedoraproject.org/wiki/Packaging:Scriptlets#Syntax
|
# https://fedoraproject.org/wiki/Packaging:Scriptlets#Syntax
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
|
echo "mullvad pre-upgrade"
|
||||||
if which systemctl &> /dev/null && systemctl is-system-running | grep -vq offline &> /dev/null; then
|
if which systemctl &> /dev/null && systemctl is-system-running | grep -vq offline &> /dev/null; then
|
||||||
if systemctl status mullvad-daemon &> /dev/null; then
|
if systemctl status mullvad-daemon &> /dev/null; then
|
||||||
mullvad-setup prepare-restart || true
|
mullvad-setup prepare-restart || true
|
||||||
|
|||||||
Reference in New Issue
Block a user