2 # $URL: svn+ssh://lmamane@svn.debian.org/svn/pkg-mailman/trunk/debian/postrm $
3 # $Id: postrm 338 2006-08-22 00:09:13Z thijs $
7 if [ "$1" = purge ]; then
8 # HACK: At present there is no way to ask ucf for registered files
9 # except for directly querying its database.
10 if which ucf >/dev/null; then
11 echo -n "Purging files from ucf database " >&2
12 for file in $(sed -e '\|^[0-9a-fA-F]\+[[:space:]]\+/etc/mailman/|!d' -e 's|^[0-9a-fA-F]\+[[:space:]]\+||' /var/lib/ucf/hashfile); do
13 ucf --purge ${file} 2>/dev/null
16 ucf --purge /etc/cron.d/mailman 2>/dev/null
21 if [ "$1" = purge ]; then
22 rm -f /etc/cron.d/mailman
24 rm -rf /var/log/mailman
25 # rm -rf /var/lib/mailman