mirror of
https://github.com/atmoz/sftp.git
synced 2024-12-22 13:14:42 -05:00
Update syntax
This commit is contained in:
parent
6fc38cf3f3
commit
461e64c547
2 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ Usage
|
|||
-----
|
||||
|
||||
- Define users as last arguments to `docker run`, one user per argument
|
||||
(syntax: `user:pass[:e][:[uid][:gid]]`).
|
||||
(syntax: `user:[pass[:e]][:[uid][:gid]]`).
|
||||
- You must set custom UID for your users if you want them to make changes to
|
||||
your mounted volumes with permissions matching your host filesystem.
|
||||
- Mount volumes in user's home folder.
|
||||
|
|
2
run
2
run
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
for users in "$@"; do
|
||||
# user:pass[:e][:[uid][:gid]]
|
||||
# user:[pass[:e]][:[uid][:gid]]
|
||||
IFS=':' read -a data <<< "$users"
|
||||
user="${data[0]}"
|
||||
pass="${data[1]}"
|
||||
|
|
Loading…
Reference in a new issue