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