mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-12 11:14:40 +00:00
fc4b25d9fd
Updates tailscale/corp#9221 Signed-off-by: David Anderson <danderson@tailscale.com>
18 lines
463 B
Bash
Executable File
18 lines
463 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 'tailscaled.service' >/dev/null || true
|
|
fi
|
|
|
|
if [ "$1" = "purge" ]; then
|
|
deb-systemd-helper purge 'tailscaled.service' >/dev/null || true
|
|
deb-systemd-helper unmask 'tailscaled.service' >/dev/null || true
|
|
rm -rf /var/lib/tailscale
|
|
fi
|
|
fi
|