0
0
Fork 0
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:
Sergey Galuza 2016-03-24 00:32:26 +03:00
parent 2d7f37cd20
commit 4c3c0608b4

View file

@ -115,13 +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
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
exec /usr/sbin/sshd -D