mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-26 19:45:35 +00:00
10 lines
366 B
Bash
10 lines
366 B
Bash
|
# $1 == 0 for uninstallation.
|
||
|
# $1 == 1 for removing old package during upgrade.
|
||
|
|
||
|
if [ $1 -eq 0 ] ; then
|
||
|
# Package removal, not upgrade
|
||
|
systemctl --no-reload disable tailscale.nginx-auth.socket > /dev/null 2>&1 || :
|
||
|
systemctl stop tailscale.nginx-auth.socket > /dev/null 2>&1 || :
|
||
|
systemctl stop tailscale.nginx-auth.service > /dev/null 2>&1 || :
|
||
|
fi
|