comments and cleanup

This commit is contained in:
Duncan Gibson
2023-07-22 10:37:15 -04:00
parent 8b832a32e3
commit 21ee55924e

View File

@@ -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."