mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-21 20:49:52 +03:00
Merge pull request #182789 from talyz/sshd-dont-delete-symlinks
sshd: Don't remove symlinks to host key files
This commit is contained in:
commit
1cfb6dab0f
@ -442,7 +442,9 @@ in
|
|||||||
|
|
||||||
${flip concatMapStrings cfg.hostKeys (k: ''
|
${flip concatMapStrings cfg.hostKeys (k: ''
|
||||||
if ! [ -s "${k.path}" ]; then
|
if ! [ -s "${k.path}" ]; then
|
||||||
rm -f "${k.path}"
|
if ! [ -h "${k.path}" ]; then
|
||||||
|
rm -f "${k.path}"
|
||||||
|
fi
|
||||||
ssh-keygen \
|
ssh-keygen \
|
||||||
-t "${k.type}" \
|
-t "${k.type}" \
|
||||||
${if k ? bits then "-b ${toString k.bits}" else ""} \
|
${if k ? bits then "-b ${toString k.bits}" else ""} \
|
||||||
|
Loading…
Reference in New Issue
Block a user