Don't hardcode rsync path

This commit is contained in:
Janek Bevendorff 2014-09-15 15:23:13 +02:00
parent c7b40ab809
commit 98ae2c9392
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ if [ "${SSH_ORIGINAL_COMMAND}" == "internal-sftp" ] || [ "${SSH_ORIGINAL_COMMAND
cd "${home_dir}/files"
exec /usr/lib/ssh/sftp-server -R
else
exec /usr/bin/rsync --server --daemon --config="${home_dir}/rsync.conf" .
exec `which rsync` --server --daemon --config="${home_dir}/rsync.conf" .
fi
echo "Session failed." >&2