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
16
entrypoint
16
entrypoint
|
@ -115,13 +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
|
fi
|
||||||
for f in /etc/sftp.d/*; do
|
# Source custom scripts, if any
|
||||||
[ -x "$f" ] && . "$f"
|
if [ -d /etc/sftp.d ]; then
|
||||||
done
|
for f in /etc/sftp.d/*; do
|
||||||
unset f
|
[ -x "$f" ] && . "$f"
|
||||||
fi
|
done
|
||||||
|
unset f
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec /usr/sbin/sshd -D
|
exec /usr/sbin/sshd -D
|
||||||
|
|
Loading…
Reference in a new issue