mirror of
https://github.com/tailscale-dev/deck-tailscale.git
synced 2025-10-22 15:38:15 +00:00
let's try this?
This commit is contained in:
25
tailscale.sh
25
tailscale.sh
@@ -75,20 +75,21 @@ echo "done."
|
||||
|
||||
echo "Starting services..."
|
||||
|
||||
if systemctl is-enabled --quiet systemd-sysext && systemctl is-active --quiet systemd-sysext; then
|
||||
echo "systemd-sysext is already enabled and active"
|
||||
systemctl enable systemd-sysext
|
||||
systemctl restart systemd-sysext
|
||||
|
||||
systemd-sysext refresh
|
||||
systemctl daemon-reload
|
||||
|
||||
systemctl enable tailscaled
|
||||
|
||||
if systemctl is-active --quiet tailscaled; then
|
||||
echo "Upgrade complete. Restarting tailscaled..."
|
||||
else
|
||||
systemctl enable systemd-sysext --now
|
||||
echo "Install complete. Starting tailscaled..."
|
||||
fi
|
||||
|
||||
systemd-sysext refresh > /dev/null 2>&1
|
||||
systemctl daemon-reload > /dev/null
|
||||
|
||||
if systemctl is-enabled --quiet tailscaled && systemctl is-active --quiet tailscaled; then
|
||||
echo "tailscaled is already enabled and active; restarting it..."
|
||||
# This needs to be the last thing we do in case the user's running this over Tailscale SSH.
|
||||
systemctl restart tailscaled
|
||||
else
|
||||
systemctl enable tailscaled --now
|
||||
fi
|
||||
|
||||
echo "Tailscale installed and ready."
|
||||
echo "Done."
|
||||
|
Reference in New Issue
Block a user