mirror of
https://github.com/atmoz/sftp.git
synced 2024-11-24 12:59:24 -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"
|
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
|
||||||
|
|
Loading…
Reference in a new issue