From 8b832a32e392b4fd8a20cb100d07de25290c9094 Mon Sep 17 00:00:00 2001 From: Duncan Gibson Date: Sat, 22 Jul 2023 10:10:27 -0400 Subject: [PATCH] well, that didn't work. damn you, systemd-sysext --- tailscale.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tailscale.sh b/tailscale.sh index 7762dd9..67e6b86 100644 --- a/tailscale.sh +++ b/tailscale.sh @@ -75,8 +75,11 @@ echo "done." echo "Starting services..." -systemctl enable systemd-sysext -systemctl restart systemd-sysext +if systemctl is-enabled --quiet systemd-sysext && systemctl is-active --quiet systemd-sysext; then + echo "systemd-sysext is already enabled and active" +else + systemctl enable systemd-sysext --now +fi systemd-sysext refresh systemctl daemon-reload