Merge pull request #141258 from waldheinz/broken-host-keys

This commit is contained in:
Sandro 2021-10-12 20:42:55 +02:00 committed by GitHub
commit 3cf6c7ba7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -439,7 +439,7 @@ in
mkdir -m 0755 -p /etc/ssh
${flip concatMapStrings cfg.hostKeys (k: ''
if ! [ -f "${k.path}" ]; then
if ! [ -s "${k.path}" ]; then
ssh-keygen \
-t "${k.type}" \
${if k ? bits then "-b ${toString k.bits}" else ""} \