mirror of
https://github.com/tailscale-dev/deck-tailscale.git
synced 2025-10-22 07:28:14 +00:00
comments and cleanup
This commit is contained in:
15
tailscale.sh
15
tailscale.sh
@@ -73,26 +73,25 @@ fi
|
|||||||
|
|
||||||
echo "done."
|
echo "done."
|
||||||
|
|
||||||
echo "Starting services..."
|
echo "Starting required services..."
|
||||||
|
|
||||||
|
# systemd-sysext - manages system extensions
|
||||||
if systemctl is-enabled --quiet systemd-sysext && systemctl is-active --quiet systemd-sysext; then
|
if systemctl is-enabled --quiet systemd-sysext && systemctl is-active --quiet systemd-sysext; then
|
||||||
echo "systemd-sysext is already enabled and active"
|
echo "systemd-sysext is already enabled and active"
|
||||||
else
|
else
|
||||||
systemctl enable systemd-sysext --now
|
systemctl enable systemd-sysext --now # this should be all we need in every case, but something breaks if it's already enabled/running.
|
||||||
fi
|
fi
|
||||||
|
systemd-sysext refresh > /dev/null 2>&1
|
||||||
|
|
||||||
systemd-sysext refresh
|
echo "Done."
|
||||||
systemctl daemon-reload
|
|
||||||
|
|
||||||
|
# tailscaled - the tailscale daemon
|
||||||
systemctl enable tailscaled
|
systemctl enable tailscaled
|
||||||
|
|
||||||
if systemctl is-active --quiet tailscaled; then
|
if systemctl is-active --quiet tailscaled; then
|
||||||
echo "Upgrade complete. Restarting tailscaled..."
|
echo "Upgrade complete. Restarting tailscaled..."
|
||||||
else
|
else
|
||||||
echo "Install complete. Starting tailscaled..."
|
echo "Install complete. Starting tailscaled..."
|
||||||
fi
|
fi
|
||||||
|
systemctl restart tailscaled # This needs to be the last thing we do in case the user's running this over Tailscale SSH.
|
||||||
# This needs to be the last thing we do in case the user's running this over Tailscale SSH.
|
|
||||||
systemctl restart tailscaled
|
|
||||||
|
|
||||||
echo "Done."
|
echo "Done."
|
||||||
|
Reference in New Issue
Block a user