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

Merge pull request #4 from seeekr/master

Create group if it does not already exist
This commit is contained in:
Adrian Dvergdal 2014-12-30 02:22:41 +01:00
commit b6f2320c01

1
run
View file

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