1 #! /bin/sh
2 # postrm script for mlmmj
3 #
4 # see: dh_installdeb(1)
6 set -e
8 # Remove the mailing lists, if we were asked to do so
9 if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
10 . /usr/share/debconf/confmodule
11 db_get mlmmj/remove-on-purge
12 if [ "$RET" = "true" ]; then
13 rm -rf /var/spool/mlmmj /etc/mlmmj/lists > /dev/null
14 fi
15 fi
17 # Look for stale data in /etc/aliases
18 if [ "$1" = purge ] && grep -qs '/usr/bin/mlmmj' /etc/aliases; then
19 echo "W: /etc/aliases appears to contain references to mlmmj" >&2
20 fi
22 # dh_installdeb will replace this with shell code automatically
23 # generated by other debhelper scripts.
25 #DEBHELPER#