mirror of
https://github.com/atmoz/sftp.git
synced 2024-11-17 12:51:33 -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]}"
|
gid="${data[3]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
useraddParams="-m -N"
|
useraddParams="--create-home --no-user-group"
|
||||||
|
|
||||||
if [ -n "$uid" ]; then
|
if [ -n "$uid" ]; then
|
||||||
useraddParams="$useraddParams -o -u $uid"
|
useraddParams="$useraddParams --non-unique --uid $uid"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$gid" ]; then
|
if [ -n "$gid" ]; then
|
||||||
useraddParams="$useraddParams -g $gid"
|
useraddParams="$useraddParams --gid $gid"
|
||||||
groupadd -g $gid $gid
|
groupadd --gid $gid $gid
|
||||||
fi
|
fi
|
||||||
|
|
||||||
useradd $useraddParams "$user"
|
useradd $useraddParams "$user"
|
||||||
|
|
Loading…
Reference in a new issue