0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-12-22 13:14:42 -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]}"
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"