mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-27 03:55:36 +00:00
fc4b25d9fd
Updates tailscale/corp#9221 Signed-off-by: David Anderson <danderson@tailscale.com>
14 lines
583 B
Bash
Executable File
14 lines
583 B
Bash
Executable File
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
|
|
deb-systemd-helper unmask 'tailscaled.service' >/dev/null || true
|
|
if deb-systemd-helper --quiet was-enabled 'tailscaled.service'; then
|
|
deb-systemd-helper enable 'tailscaled.service' >/dev/null || true
|
|
else
|
|
deb-systemd-helper update-state 'tailscaled.service' >/dev/null || true
|
|
fi
|
|
|
|
if [ -d /run/systemd/system ]; then
|
|
systemctl --system daemon-reload >/dev/null || true
|
|
deb-systemd-invoke restart 'tailscaled.service' >/dev/null || true
|
|
fi
|
|
fi
|