delete.sh (benno-smtp-2.6.0.tgz) | : | delete.sh (benno-smtp-2.8.0.tgz) | ||
---|---|---|---|---|
skipping to change at line 40 | skipping to change at line 40 | |||
*) | *) | |||
echo "postrm called with unknown argument \`$1'" >&2 | echo "postrm called with unknown argument \`$1'" >&2 | |||
exit 1 | exit 1 | |||
;; | ;; | |||
esac | esac | |||
# dh_installdeb will replace this with shell code automatically | # dh_installdeb will replace this with shell code automatically | |||
# generated by other debhelper scripts. | # generated by other debhelper scripts. | |||
# Automatically added by dh_installinit | # Automatically added by dh_installinit/13.3.4 | |||
if [ "$1" = "purge" ] ; then | if [ "$1" = "purge" ] ; then | |||
update-rc.d benno-smtp remove >/dev/null | update-rc.d benno-smtp remove >/dev/null | |||
fi | fi | |||
# End automatically added section | ||||
# In case this system is running systemd, we make systemd reload the unit files | # Automatically added by dh_systemd_start/13.3.4 | |||
# to pick up changes. | if [ -d /run/systemd/system ] && [ "$1" = remove ]; then | |||
if [ -d /run/systemd/system ] ; then | ||||
systemctl --system daemon-reload >/dev/null || true | systemctl --system daemon-reload >/dev/null || true | |||
fi | fi | |||
# End automatically added section | # End automatically added section | |||
# Automatically added by dh_systemd_enable/13.3.4 | ||||
if [ "$1" = "remove" ]; then | ||||
if [ -x "/usr/bin/deb-systemd-helper" ]; then | ||||
deb-systemd-helper mask 'benno-smtp.service' >/dev/null || true | ||||
fi | ||||
fi | ||||
if [ "$1" = "purge" ]; then | ||||
if [ -x "/usr/bin/deb-systemd-helper" ]; then | ||||
deb-systemd-helper purge 'benno-smtp.service' >/dev/null || true | ||||
deb-systemd-helper unmask 'benno-smtp.service' >/dev/null || true | ||||
fi | ||||
fi | ||||
# End automatically added section | ||||
exit 0 | exit 0 | |||
End of changes. 3 change blocks. | ||||
5 lines changed or deleted | 18 lines changed or added |