diff options
author | Jonas Smedegaard <dr@jones.dk> | 2002-04-02 07:16:39 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2002-04-02 07:16:39 +0000 |
commit | 663da95a340b7401d2e34daa4224a0814541cb28 (patch) | |
tree | f9508b9ec8a2cdd984a93c556fc80b18ee4d93fc /deluser.local | |
parent | ee3fbfe619b4f8a43f7370fc048e2d95943c0188 (diff) |
Fix mailinglist handling in deluser.local.
Diffstat (limited to 'deluser.local')
-rwxr-xr-x | deluser.local | 5 |
1 files changed, 3 insertions, 2 deletions
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 <dr@jones.dk> # -# $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 |