0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-12-22 13:14:42 -05:00

Update syntax

This commit is contained in:
Adrian Dvergsdal 2014-10-28 18:58:03 +01:00
parent 6fc38cf3f3
commit 461e64c547
2 changed files with 2 additions and 2 deletions

View file

@ -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
View file

@ -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]}"