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:
parent
2d7f37cd20
commit
4c3c0608b4
1 changed files with 8 additions and 8 deletions
|
@ -115,13 +115,13 @@ if [ ! -f "$userConfFinalPath" ]; then
|
|||
createUser "$user"
|
||||
done < "$userConfFinalPath"
|
||||
|
||||
# Source custom scripts, if any
|
||||
if [ -d /etc/sftp.d ]; then
|
||||
|
||||
fi
|
||||
# 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