mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-26 03:25: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>
20 lines
723 B
Bash
Executable File
20 lines
723 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
if [ -d /run/systemd/system ] ; then
|
|
systemctl --system daemon-reload >/dev/null || true
|
|
fi
|
|
|
|
if [ -x "/usr/bin/deb-systemd-helper" ]; then
|
|
if [ "$1" = "remove" ]; then
|
|
deb-systemd-helper mask 'tailscale.nginx-auth.socket' >/dev/null || true
|
|
deb-systemd-helper mask 'tailscale.nginx-auth.service' >/dev/null || true
|
|
fi
|
|
|
|
if [ "$1" = "purge" ]; then
|
|
deb-systemd-helper purge 'tailscale.nginx-auth.socket' >/dev/null || true
|
|
deb-systemd-helper unmask 'tailscale.nginx-auth.socket' >/dev/null || true
|
|
deb-systemd-helper purge 'tailscale.nginx-auth.service' >/dev/null || true
|
|
deb-systemd-helper unmask 'tailscale.nginx-auth.service' >/dev/null || true
|
|
fi
|
|
fi
|