From 538d2cc16ccf2331dd567ac6a57d259898a05b67 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 30 Dec 2005 14:06:08 +0000 Subject: Avoid the 'function' keyword (unsupported in (d)ash). --- adduser.local | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'adduser.local') diff --git a/adduser.local b/adduser.local index 974acf0..1445e99 100755 --- a/adduser.local +++ b/adduser.local @@ -3,7 +3,7 @@ # /usr/local/sbin/adduser.local # Copyright 2001-2002 Jonas Smedegaard # -# $Id: adduser.local,v 1.22 2005-12-20 02:11:51 jonas Exp $ +# $Id: adduser.local,v 1.23 2005-12-30 14:06:08 jonas Exp $ # # Common adduser additions for Spiff and Xenux networks # @@ -19,11 +19,11 @@ NEWUID=$2 NEWGID=$3 NEWHOMEDIR=$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 add2list() { /bin/echo "$1" | /usr/sbin/add_members -w y -a y -r - "$2"; } +listlists() { if [ -x /usr/sbin/list_lists ]; then /usr/sbin/list_lists -ab; fi; } +add2list() { /bin/echo "$1" | /usr/sbin/add_members -w y -a y -r - "$2"; } . /etc/adduser.conf -- cgit v1.2.3 ter'>logtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2023-06-27 09:35:08 +0200
committerJonas Smedegaard <dr@jones.dk>2023-06-27 09:35:08 +0200
commitfd54908da2b05c526dd3bee9b6dcd093214a220d (patch)
treec69c845069c99d1d01044f6fafda7c08433329c6 /tags/57/36/20170612050205.E25A91C071@jawa.homebase.dk/unread
parentba46132213560cf3335d53560d519c0ec0190da2 (diff)
Diffstat (limited to 'tags/57/36/20170612050205.E25A91C071@jawa.homebase.dk/unread')
-rw-r--r--tags/57/36/20170612050205.E25A91C071@jawa.homebase.dk/unread0
1 files changed, 0 insertions, 0 deletions