Explicitly source /etc/profile to circument environment issues with ipkg-installed packages on Synology DSM

This commit is contained in:
Janek Bevendorff 2014-09-15 15:51:51 +02:00
parent 98ae2c9392
commit 7568fb93ef
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@ if [ "${SSH_ORIGINAL_COMMAND}" == "internal-sftp" ] || [ "${SSH_ORIGINAL_COMMAND
cd "${home_dir}/files"
exec /usr/lib/ssh/sftp-server -R
else
source /etc/profile
exec `which rsync` --server --daemon --config="${home_dir}/rsync.conf" .
fi