0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-11-17 12:51:33 -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" createUser "$user"
done < "$userConfFinalPath" 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 fi
exec /usr/sbin/sshd -D exec /usr/sbin/sshd -D