0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-12-22 13:14:42 -05:00

Source custom scripts, for e.g. mount bind volumes

This commit is contained in:
Adrian Dvergsdal 2015-12-21 01:46:11 +01:00
parent 27939df2ff
commit 0e8ee2bd40

View file

@ -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