harness-drone/packaging/scripts/postrm.rpm
2014-10-12 23:51:51 +04:00

11 lines
No EOL
247 B
Bash

#!/bin/sh
set -e
# https://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch09s04s05.html
systemctl daemon-reload || :
if [ "$1" -ge 1 ] ; then
# Package upgrade, not uninstall
systemctl try-restart drone || :
fi