diff options
Diffstat (limited to 'adduser')
-rw-r--r-- | adduser/adduser.sh | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/adduser/adduser.sh b/adduser/adduser.sh index 5b970dc..b7b97e0 100644 --- a/adduser/adduser.sh +++ b/adduser/adduser.sh @@ -199,6 +199,7 @@ save_config() { echo "udotdir=$udotdir" >> ${ADDUSERCONF} echo "msgfile=$msgfile" >> ${ADDUSERCONF} echo "disableflag=$disableflag" >> ${ADDUSERCONF} + echo "uidstart=$uidstart" >> ${ADDUSERCONF} } # add_user @@ -453,16 +454,10 @@ get_homedir() { # allocates one if it is not specified. # get_uid() { - if [ -z "$uuid" ]; then - uuid=${uidstart} - fi - + uuid=${uidstart} _input= _prompt= - # No need to take down uids for a configuration saving run. - [ -n "$configflag" ] && return - if [ -n "$uuid" ]; then _prompt="Uid [$uuid]: " else |