summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2006-08-25 04:36:44 +0000
committerJonas Smedegaard <dr@jones.dk>2006-08-25 04:36:44 +0000
commit7141a0ff875c9dc666b5a12ea8544363861edba4 (patch)
treea9226ad2c39dafd67f18dacce6f6b1beb9e9ec03
parentecf07f49b24276116aec8b8f1f6a12aedcd23b36 (diff)
Disable debug. Pass GECOS info in a sarge-compatible way.
-rwxr-xr-xlocaladduser5
1 files changed, 2 insertions, 3 deletions
diff --git a/localadduser b/localadduser
index 774c24c..433315c 100755
--- a/localadduser
+++ b/localadduser
@@ -3,7 +3,7 @@
# /usr/local/bin/localadduser
# Copyright 2003 Jonas Smedegaard <dr@jones.dk>
#
-# $Id: localadduser,v 1.2 2006-08-25 02:34:29 jonas Exp $
+# $Id: localadduser,v 1.3 2006-08-25 04:36:44 jonas Exp $
#
# Execute adduser noninteractively through sudo
#
@@ -13,7 +13,6 @@
#
set -e
-set -x
pass_len=11
pass_expire=30
@@ -76,7 +75,7 @@ if [ ! "$interactive" -gt 0 ]; then
quiet="--quiet"
fi
if [ -n "$fullname$office_phone$home_phone$other" ]; then
- eval $simulate sudo "/usr/sbin/adduser $quiet --disabled-login --gecos=\"$fullname,,$office_phone,$home_phone,$other\" \"$u\""
+ eval $simulate sudo "/usr/sbin/adduser $quiet --disabled-login --gecos \"$fullname,,$office_phone,$home_phone,$other\" \"$u\""
else
if [ ! "$interactive" -gt 0 ]; then
echo "E: Not enough info provided to create account for \"$u\"" >&2