src.dualinventive.com/dinet/libdi/build/Debug/debian/postrm

37 lines
544 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 [ "" != "" ]; then
if [ -x /bin/systemctl ]; then
if [ -e /lib/systemd/system/-db.service ]; then
systemctl restart -db >/dev/null 2>&1 || true
fi
systemctl restart
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