diff options
Diffstat (limited to 'deluser.local')
-rwxr-xr-x | deluser.local | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deluser.local b/deluser.local index 9f5ac3c..713c7f3 100755 --- a/deluser.local +++ b/deluser.local @@ -1,9 +1,9 @@ #!/bin/sh # # /usr/local/sbin/deluser.local -# Copyright 2001-2002 Jonas Smedegaard <dr@jones.dk> +# Copyright 2001-2006 Jonas Smedegaard <dr@jones.dk> # -# $Id: deluser.local,v 1.20 2006-01-12 23:38:45 jonas Exp $ +# $Id: deluser.local,v 1.21 2006-07-16 12:34:00 jonas Exp $ # # Common deluser additions for Spiff and Xenux networks # @@ -25,7 +25,7 @@ delfromlist() { /bin/echo "$1" | /usr/sbin/remove_members -f - "$2"; } #. /etc/deluser.conf # Workaround: default deluser.conf is not sh-compatible (like adduser.conf) -REMOVE_HOME=`grep REMOVE_HOME /etc/deluser.conf | awk -F= '{print $2}' | head -1 | sed 's/^ //g'` +REMOVE_HOME=`grep REMOVE_HOME /etc/deluser.conf | awk -F= '{print $2}' | head -n 1 | sed 's/^ //g'` # Ignore non-human accounts silently [ "$OLDUID" -ge "$FIRST_UID" -a "$OLDUID" -le "$LAST_UID" ] || exit 0 |