Graeme Walker 6a32f90311 v2.4
2022-11-01 12:00:00 +00:00

34 lines
525 B
Bash
Executable File

#!/bin/sh
#
# postrm
#
spool="/var/spool/emailrelay"
rundir="/run/emailrelay"
emailrelay_unfix_html()
{
# see postinst
rm -f /usr/share/doc/emailrelay/changelog.html
}
emailrelay_purge()
{
# (purge deliberately fails if spooled messages exist)
#rm -rf "$spool" 2>/dev/null
rmdir "$spool" 2>/dev/null
rmdir "$rundir" 2>/dev/null
rm /etc/emailrelay.conf 2>/dev/null
rm -rf "/usr/share/doc/emailrelay/doxygen" 2>/dev/null
}
#DEBHELPER#
emailrelay_unfix_html
if test "$1" = "purge"
then
emailrelay_purge
fi
exit 0