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