release: open-source release build logic for unix packages

Updates tailscale/corp#9221

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson
2023-02-24 13:22:21 -08:00
committed by Dave Anderson
parent 44e027abca
commit fc4b25d9fd
12 changed files with 1071 additions and 0 deletions

8
release/rpm/rpm.prerm.sh Executable file
View File

@@ -0,0 +1,8 @@
# $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