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:
commit
b6f2320c01
1 changed files with 1 additions and 0 deletions
1
run
1
run
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue