From ee6c86126bdd4dd16b37fad1aab6cab17841ae26 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 12 Jan 2006 17:06:23 +0000 Subject: Avoid unneeded keyword 'function' (unsupported in dash). --- deluser.local | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'deluser.local') diff --git a/deluser.local b/deluser.local index d102988..2ae6a46 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.17 2005-12-20 02:03:36 jonas Exp $ +# $Id: deluser.local,v 1.18 2006-01-12 17:06:23 jonas Exp $ # # Common deluser additions for Spiff and Xenux networks # @@ -15,11 +15,11 @@ OLDUID=$2 OLDGID=$3 OLDHOMEDIR=$4 -function fullname() { getent passwd $NEWUSERNAME | awk -F: '{print $5}' | awk -F, '{print $1}'; } -function maildomain() { if [ -r /etc/mailname ]; then head -n 1 /etc/mailname; fi; } +fullname() { getent passwd $NEWUSERNAME | awk -F: '{print $5}' | awk -F, '{print $1}'; } +maildomain() { if [ -r /etc/mailname ]; then head -n 1 /etc/mailname; fi; } -function listlists() { if [ -x /usr/sbin/list_lists ]; then /usr/sbin/list_lists -ab; fi; } -function delfromlist() { /bin/echo "$1" | /usr/sbin/remove_members -f - "$2"; } +listlists() { if [ -x /usr/sbin/list_lists ]; then /usr/sbin/list_lists -ab; fi; } +delfromlist() { /bin/echo "$1" | /usr/sbin/remove_members -f - "$2"; } . /etc/adduser.conf -- cgit v1.2.3