0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-11-17 12:51:33 -05:00

run /etc/sftp.d script each time (even after restarts)

This commit is contained in:
Sergey Galuza 2016-03-24 00:32:26 +03:00
parent 2d7f37cd20
commit 4c3c0608b4

View file

@ -115,13 +115,13 @@ if [ ! -f "$userConfFinalPath" ]; then
createUser "$user" createUser "$user"
done < "$userConfFinalPath" done < "$userConfFinalPath"
# Source custom scripts, if any
if [ -d /etc/sftp.d ]; then fi
for f in /etc/sftp.d/*; do # Source custom scripts, if any
[ -x "$f" ] && . "$f" if [ -d /etc/sftp.d ]; then
done for f in /etc/sftp.d/*; do
unset f [ -x "$f" ] && . "$f"
fi done
unset f
fi fi
exec /usr/sbin/sshd -D exec /usr/sbin/sshd -D