Skip to content

Commit

Permalink
fix(sftpgo): set owner of root folder to sftpgo user (#89)
Browse files Browse the repository at this point in the history
* fix(sftpgo): set owner of root folder to sftpgo user

* fix(sftpgo): one liner way
  • Loading branch information
stephdl authored Jan 18, 2025
1 parent 4ce1e7d commit 8bb116c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imageroot/actions/create-vhost/10base
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ headers = {
conn.request("POST", "/api/v2/users", payload, headers)

## create the directory for the user with podman exec
subprocess.run(["podman", "exec", "sftpgo", "mkdir", "/srv/sftpgo/data/"+str(NextFpmPort)])
subprocess.run(["podman", "exec", "sftpgo", "install", "-d", "-m", "0755", "-o", "bin", "-g", "root", "/srv/sftpgo/data/"+str(NextFpmPort)])

0 comments on commit 8bb116c

Please sign in to comment.