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,6 +115,8 @@ if [ ! -f "$userConfFinalPath" ]; then
|
||||||
createUser "$user"
|
createUser "$user"
|
||||||
done < "$userConfFinalPath"
|
done < "$userConfFinalPath"
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
# Source custom scripts, if any
|
# Source custom scripts, if any
|
||||||
if [ -d /etc/sftp.d ]; then
|
if [ -d /etc/sftp.d ]; then
|
||||||
for f in /etc/sftp.d/*; do
|
for f in /etc/sftp.d/*; do
|
||||||
|
@ -122,6 +124,4 @@ if [ ! -f "$userConfFinalPath" ]; then
|
||||||
done
|
done
|
||||||
unset f
|
unset f
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
exec /usr/sbin/sshd -D
|
exec /usr/sbin/sshd -D
|
||||||
|
|
Loading…
Reference in a new issue