tailscale/release/rpm/rpm.prerm.sh
David Anderson fc4b25d9fd release: open-source release build logic for unix packages
Updates tailscale/corp#9221

Signed-off-by: David Anderson <danderson@tailscale.com>
2023-02-24 21:31:09 +00:00

9 lines
294 B
Bash
Executable File

# $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