mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-05 07:55:36 +00:00
9 lines
294 B
Bash
9 lines
294 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 tailscaled.service > /dev/null 2>&1 || :
|
||
|
systemctl stop tailscaled.service > /dev/null 2>&1 || :
|
||
|
fi
|