mirror of
https://github.com/atmoz/sftp.git
synced 2025-03-09 15:16:00 -04:00
force newline during authorized_keys file build
This commit is contained in:
parent
302390e67c
commit
42b4088690
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ if [ -d "$userKeysQueuedDir" ]; then
|
||||||
userKeysAllowedFile="/home/$user/.ssh/authorized_keys"
|
userKeysAllowedFile="/home/$user/.ssh/authorized_keys"
|
||||||
|
|
||||||
for publickey in "$userKeysQueuedDir"/*; do
|
for publickey in "$userKeysQueuedDir"/*; do
|
||||||
cat "$publickey" >> "$userKeysAllowedFileTmp"
|
echo -e "$(cat "$publickey")" >> "$userKeysAllowedFileTmp"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Remove duplicate keys
|
# Remove duplicate keys
|
||||||
|
|
Loading…
Add table
Reference in a new issue