0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-11-17 12:51:33 -05:00

Improved readability

This commit is contained in:
Adrian Dvergsdal 2014-12-31 16:42:09 +01:00
parent c5ec0cfc3f
commit 9ce386d7ae

View file

@ -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"