mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-15 07:27:30 +00:00
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:

committed by
Dave Anderson

parent
44e027abca
commit
fc4b25d9fd
8
release/rpm/rpm.postrm.sh
Executable file
8
release/rpm/rpm.postrm.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
# $1 == 0 for uninstallation.
|
||||
# $1 == 1 for removing old package during upgrade.
|
||||
|
||||
systemctl daemon-reload >/dev/null 2>&1 || :
|
||||
if [ $1 -ge 1 ] ; then
|
||||
# Package upgrade, not uninstall
|
||||
systemctl try-restart tailscaled.service >/dev/null 2>&1 || :
|
||||
fi
|
Reference in New Issue
Block a user