v5/debian/DEBIAN/postrm
2017-11-08 13:39:11 +01:00

38 lines
No EOL
776 B
Bash

#!/bin/sh
# postrm script for mailscanner
#
set -e
# unregister the old startup script
update-rc.d -f mailscanner remove
if [ -d '/usr/lib/systemd' ] && [ -f '/lib/systemd/system/mailscanner.service' ]; then
systemctl disable mailscanner.service
rm -f /lib/systemd/system/mailscanner.service
fi
if [ -L '/etc/init.d/mailscanner' ]; then
rm -f /etc/init.d/mailscanner
fi
if [ -L '/etc/init.d/MailScanner' ]; then
rm -f /etc/init.d/MailScanner
fi
if [ -f '/etc/init.d/mailscanner' ]; then
rm -f /etc/init.d/mailscanner
fi
if [ -f '/etc/init.d/MailScanner' ]; then
rm -f /etc/init.d/MailScanner
fi
if [ -L '/etc/MailScanner/reports' ]; then
rm -f /etc/MailScanner/reports
fi
if [ -L '/etc/MailScanner/custom' ]; then
rm -f /etc/MailScanner/custom
fi
exit 0