Fix more APKBUILD issues

This commit is contained in:
Joakim Hulthe
2026-04-23 14:46:00 +02:00
parent 81862a0b80
commit 4486d6a3c1
8 changed files with 21 additions and 21 deletions

View File

@@ -1,10 +1,10 @@
#!/usr/bin/env bash
#!/bin/sh
set -eu
# Are we running systemd?
if which systemctl &> /dev/null && systemctl is-system-running | grep -vq offline &> /dev/null; then
if which systemctl >/dev/null 2>&1 && systemctl is-system-running | grep -vq offline >/dev/null 2>&1; then
# Does `mullvad-daemon.service` exist?
if systemctl list-unit-files mullvad-daemon.service &> /dev/null; then
if systemctl list-unit-files mullvad-daemon.service >/dev/null 2>&1; 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"