0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2025-01-05 13:28:47 -05:00

force newline during authorized_keys file build

This commit is contained in:
Jovan Alleyne 2021-11-10 23:28:44 -05:00
parent 302390e67c
commit 42b4088690

View file

@ -87,7 +87,7 @@ if [ -d "$userKeysQueuedDir" ]; then
userKeysAllowedFile="/home/$user/.ssh/authorized_keys"
for publickey in "$userKeysQueuedDir"/*; do
cat "$publickey" >> "$userKeysAllowedFileTmp"
echo -e "$(cat "$publickey")" >> "$userKeysAllowedFileTmp"
done
# Remove duplicate keys