mirror of
https://github.com/atmoz/sftp.git
synced 2024-12-22 13:14:42 -05:00
Improved readability
This commit is contained in:
parent
c5ec0cfc3f
commit
9ce386d7ae
1 changed files with 4 additions and 4 deletions
|
@ -14,15 +14,15 @@ for users in "$@"; do
|
|||
gid="${data[3]}"
|
||||
fi
|
||||
|
||||
useraddParams="-m -N"
|
||||
useraddParams="--create-home --no-user-group"
|
||||
|
||||
if [ -n "$uid" ]; then
|
||||
useraddParams="$useraddParams -o -u $uid"
|
||||
useraddParams="$useraddParams --non-unique --uid $uid"
|
||||
fi
|
||||
|
||||
if [ -n "$gid" ]; then
|
||||
useraddParams="$useraddParams -g $gid"
|
||||
groupadd -g $gid $gid
|
||||
useraddParams="$useraddParams --gid $gid"
|
||||
groupadd --gid $gid $gid
|
||||
fi
|
||||
|
||||
useradd $useraddParams "$user"
|
||||
|
|
Loading…
Reference in a new issue