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

fixing gid handling if group doesn't exist yet

This commit is contained in:
Denis Andrejew 2014-12-29 22:08:15 +01:00
parent 251e901f5d
commit 5d51fa38d9

1
run
View file

@ -22,6 +22,7 @@ for users in "$@"; do
if [ -n "$gid" ]; then
useraddParams="$useraddParams -g $gid"
groupadd -g $gid $gid
fi
useradd $useraddParams "$user"