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:
parent
251e901f5d
commit
5d51fa38d9
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
|
||||
useraddParams="$useraddParams -g $gid"
|
||||
groupadd -g $gid $gid
|
||||
fi
|
||||
|
||||
useradd $useraddParams "$user"
|
||||
|
|
Loading…
Reference in a new issue