mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-26 19:45:35 +00:00
fc2f628d4c
* cmd/nginx-auth: add maintainer scripts Signed-off-by: Xe <xe@tailscale.com> * cmd/nginx-auth: add Expected-Tailnet header and documentation Signed-off-by: Xe <xe@tailscale.com>
15 lines
776 B
Bash
Executable File
15 lines
776 B
Bash
Executable File
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
|
|
deb-systemd-helper unmask 'tailscale.nginx-auth.socket' >/dev/null || true
|
|
if deb-systemd-helper --quiet was-enabled 'tailscale.nginx-auth.socket'; then
|
|
deb-systemd-helper enable 'tailscale.nginx-auth.socket' >/dev/null || true
|
|
else
|
|
deb-systemd-helper update-state 'tailscale.nginx-auth.socket' >/dev/null || true
|
|
fi
|
|
|
|
if systemctl is-active tailscale.nginx-auth.socket >/dev/null; then
|
|
systemctl --system daemon-reload >/dev/null || true
|
|
deb-systemd-invoke stop 'tailscale.nginx-auth.service' >/dev/null || true
|
|
deb-systemd-invoke restart 'tailscale.nginx-auth.socket' >/dev/null || true
|
|
fi
|
|
fi
|