Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
libre
docker-cron
Commits
b5fd005b
Commit
b5fd005b
authored
Mar 03, 2016
by
Michał 'rysiek' Woźniak
Browse files
bugfix: newlines in known_hosts
parent
9d336497
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
run.sh
run.sh
+2
-2
No files found.
run.sh
View file @
b5fd005b
...
...
@@ -15,12 +15,12 @@ if [ ! -e /etc/ssh/ssh_known_hosts ]; then
cat
/etc/ssh/ssh_known_hosts.template
>
/etc/ssh/ssh_known_hosts
fi
echo
" +-- adding local ECDSA pubkey from: /etc/ssh/ssh_host_ecdsa_key.pub"
echo
"
*
$(
cat
/etc/ssh/ssh_host_ecdsa_key.pub
)
"
>>
/etc/ssh/ssh_known_hosts
echo
-e
"
\n
*
$(
cat
/etc/ssh/ssh_host_ecdsa_key.pub
)
"
>>
/etc/ssh/ssh_known_hosts
# if SSH_KNOWN_HOSTS is nonempty, let's add that to ssh_known_hosts
if
[
!
-z
${
SSH_KNOWN_HOSTS
+x
}
]
;
then
echo
" +-- adding known hosts from SSH_KNOWN_HOSTS:"
echo
-e
"
${
SSH_KNOWN_HOSTS
}
"
echo
-e
"
${
SSH_KNOWN_HOSTS
}
"
>>
"/etc/ssh/ssh_known_hosts"
echo
-e
"
\n
${
SSH_KNOWN_HOSTS
}
"
>>
"/etc/ssh/ssh_known_hosts"
fi
echo
" +-- done."
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment