diff --git a/entrypoint b/entrypoint index d90c2b1..d0231a9 100755 --- a/entrypoint +++ b/entrypoint @@ -115,13 +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 +# 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 - exec /usr/sbin/sshd -D