tailscale/release/rpm/rpm.postrm.sh

9 lines
268 B
Bash
Raw Permalink Normal View History

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