From 4c3c0608b4d9843ca6aed0d52f5968c4fd15960f Mon Sep 17 00:00:00 2001 From: Sergey Galuza Date: Thu, 24 Mar 2016 00:32:26 +0300 Subject: [PATCH] run /etc/sftp.d script each time (even after restarts) --- entrypoint | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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