From 0e8ee2bd40f3e4bcf559fda1dff4416eb2ae27b4 Mon Sep 17 00:00:00 2001 From: Adrian Dvergsdal Date: Mon, 21 Dec 2015 01:46:11 +0100 Subject: [PATCH] Source custom scripts, for e.g. mount bind volumes --- entrypoint | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/entrypoint b/entrypoint index f59014e..91fcfd5 100755 --- a/entrypoint +++ b/entrypoint @@ -115,6 +115,13 @@ if [ ! -f "$userConfFinalPath" ]; then createUser "$user" done < "$userConfFinalPath" + # Source custom scripts, if any + if [ -d /etc/sftp.d ]; then + for f in /etc/sftp.d/*; do + [ -x "$f" ] && . "$f" + done + unset f + fi fi exec /usr/sbin/sshd -D