mirror of
https://github.com/atmoz/sftp.git
synced 2024-11-17 12:51:33 -05:00
Remove syntax from script, keep it in readme (DRY)
This commit is contained in:
parent
461e64c547
commit
0fd7c0445e
2 changed files with 1 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.
|
||||
|
|
1
run
1
run
|
@ -1,7 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
for users in "$@"; do
|
||||
# user:[pass[:e]][:[uid][:gid]]
|
||||
IFS=':' read -a data <<< "$users"
|
||||
user="${data[0]}"
|
||||
pass="${data[1]}"
|
||||
|
|
Loading…
Reference in a new issue