blob: f4dd4ed9cdc15e6f19904d1c7795c3a5c9e686e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/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
|