From 663da95a340b7401d2e34daa4224a0814541cb28 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 2 Apr 2002 07:16:39 +0000 Subject: Fix mailinglist handling in deluser.local. --- deluser.local | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'deluser.local') diff --git a/deluser.local b/deluser.local index d74c2e1..91bf2c8 100755 --- a/deluser.local +++ b/deluser.local @@ -3,7 +3,7 @@ # /usr/local/sbin/deluser.local # Copyright 2001-2002 Jonas Smedegaard # -# $Id: deluser.local,v 1.10 2002-03-28 15:46:58 jonas Exp $ +# $Id: deluser.local,v 1.11 2002-04-02 07:16:39 jonas Exp $ # # Common deluser additions for Spiff and Xenux networks # @@ -33,13 +33,14 @@ fi # Mailinglists #FIXME: Be more generic - support other mailinglists than mailman! +echo "Remove from all mailinglists..." listdir="/var/lib/mailman/lists" lists="" [ -d $listdir ] && \ lists=`find $listdir -type d -mindepth 1 -maxdepth 1 -exec basename '{}' \;` for list in $lists; do if [ -d $listdir/$list -a -x /usr/sbin/remove_members ]; then - /bin/echo $NEWUSERNAME@`/bin/dnsdomainname` \ + /bin/echo $OLDUSERNAME@`/bin/dnsdomainname` \ | /usr/sbin/remove_members -f - $list fi done -- cgit v1.2.3