mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-27 12:05:40 +00:00
20 lines
723 B
Bash
20 lines
723 B
Bash
|
#!/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
|