0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-11-24 12:59:24 -05:00

Merge pull request #1 from chaosaffe/kubernetes-secret

Move user file to /etc/sftp/ directory
This commit is contained in:
Jason Murray 2017-03-08 11:30:44 +01:00 committed by GitHub
commit 6e4ace1792
2 changed files with 3 additions and 3 deletions

View file

@ -73,7 +73,7 @@ OpenSSH client, run: `sftp -P 2222 foo@<host-ip>`
``` ```
docker run \ docker run \
-v /host/users.conf:/etc/sftp-users.conf:ro \ -v /host/users.conf:/etc/sftp/sftp-users.conf:ro \
-v mySftpVolume:/home \ -v mySftpVolume:/home \
-v /host/ssh_host_rsa_key:/etc/ssh/ssh_host_rsa_key \ -v /host/ssh_host_rsa_key:/etc/ssh/ssh_host_rsa_key \
-v /host/ssh_host_rsa_key.pub:/etc/ssh/ssh_host_rsa_key.pub \ -v /host/ssh_host_rsa_key.pub:/etc/ssh/ssh_host_rsa_key.pub \

View file

@ -2,8 +2,8 @@
set -e set -e
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
userConfPath="/etc/sftp-users.conf" userConfPath="/etc/sftp/sftp-users.conf"
userConfFinalPath="/var/run/sftp-users.conf" userConfFinalPath="/var/run/sftp/sftp-users.conf"
function printHelp() { function printHelp() {
echo "Add users as command arguments, STDIN or mounted in $userConfPath" echo "Add users as command arguments, STDIN or mounted in $userConfPath"