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:
parent
27939df2ff
commit
0e8ee2bd40
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue