mirror of
https://github.com/MailScanner/v5.git
synced 2024-11-10 17:35:06 +08:00
38 lines
No EOL
776 B
Bash
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 |