Koha-clms/debian/koha-systemd.postinst

22 lines
415 B
Bash

#!/bin/sh
set -e
case "$1" in
configure)
# Reload systemd daemon
systemctl daemon-reload || true
;;
# on upgrade, restart running Koha services so they pick up new code/unit files
if [ -n "$2" ]; then
deb-systemd-invoke try-restart \
'koha-*@*.service' \
>/dev/null || true
fi
esac
#DEBHELPER#
exit 0