mirror of
https://github.com/atmoz/sftp.git
synced 2024-11-17 12:51:33 -05:00
Change create-sftp-user to honor gid for the directories
The gid is not being properly set for newly created dirs. Looks like the group "users" is hard coded instead.
This commit is contained in:
parent
bd437a09cb
commit
4890e4e134
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ if [ -n "$dir" ]; then
|
|||
if [ ! -d "$dirPath" ]; then
|
||||
log "Creating directory: $dirPath"
|
||||
mkdir -p "$dirPath"
|
||||
chown -R "$uid:users" "$dirPath"
|
||||
chown -R "$uid:$gid" "$dirPath"
|
||||
else
|
||||
log "Directory already exists: $dirPath"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue