0
0
Fork 0
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:
Adrian Dvergsdal 2014-10-28 19:04:01 +01:00
parent 461e64c547
commit 0fd7c0445e
2 changed files with 1 additions and 2 deletions

View file

@ -7,7 +7,7 @@ Usage
----- -----
- Define users as last arguments to `docker run`, one user per argument - 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 - 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. your mounted volumes with permissions matching your host filesystem.
- Mount volumes in user's home folder. - Mount volumes in user's home folder.

1
run
View file

@ -1,7 +1,6 @@
#!/bin/bash #!/bin/bash
for users in "$@"; do for users in "$@"; do
# user:[pass[:e]][:[uid][:gid]]
IFS=':' read -a data <<< "$users" IFS=':' read -a data <<< "$users"
user="${data[0]}" user="${data[0]}"
pass="${data[1]}" pass="${data[1]}"