src.dualinventive.com/jjacobs/dinetrpcll-sniffer/libdipp/common/cmake/templates/debian/postrm.in

37 lines
616 B
Bash

#!/bin/sh
set -e
# systemd: reload the daemon
if [ -x /bin/systemctl ]; then
systemctl daemon-reload >/dev/null 2>&1 || true
fi
case "$1" in
upgrade)
if [ "@PROJECT_APP_NAME@" != "" ]; then
if [ -x /bin/systemctl ]; then
if [ -e /lib/systemd/system/@PROJECT_APP_NAME@-db.service ]; then
systemctl restart @PROJECT_APP_NAME@-db >/dev/null 2>&1 || true
fi
systemctl restart @PROJECT_APP_NAME@
fi
fi
;;
purge)
;;
remove|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0