Fix SFTP not working for non-standard sftp-server locations

This commit is contained in:
Janek Bevendorff 2015-10-14 19:50:23 +02:00
parent 8b7a244c27
commit fea3b8e4cd
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@
home_dir=$1
if $(echo "${SSH_ORIGINAL_COMMAND}" | grep -q "^\(internal-sftp\|/usr/lib/ssh/sftp-server\)"); then
if $(echo "${SSH_ORIGINAL_COMMAND}" | grep -q "^\(internal-sftp\|.*/sftp-server\)"); then
export HOME="${home_dir}/files"
cd $HOME
[ -x /usr/lib/ssh/sftp-server ] && exec /usr/lib/ssh/sftp-server -R