0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-12-22 13:14:42 -05:00

Wrong command...

This commit is contained in:
Moritz 2022-01-10 23:38:56 +01:00
parent e74f1befb4
commit 44f295dae6

View file

@ -53,10 +53,10 @@ if [ ! -f "$userConfFinalPath" ]; then
done
fi
if [ -n "$READONLY" ]; then
if [ -n "$READONLY" ]; then
if [ "$READONLY" = "true" ]; then
sed 's/Subsystem sftp internal-sftp/Subsystem sftp internal-sftp -R/' "/etc/ssh/sshd_config" | tee "/etc/ssh/sshd_config"
fi
sed 's/ForceCommand internal-sftp/ForceCommand internal-sftp -R/' "/etc/ssh/sshd_config" | tee "/etc/ssh/sshd_config"
fi
fi
# Check that we have users in config