* Print the host key after sshd has started to prevent a potential race.

svn path=/nixos/trunk/; revision=30236
This commit is contained in:
Eelco Dolstra 2011-11-04 20:33:24 +00:00
parent 8a0a0efb48
commit 3d5f3aa2b4

View file

@ -39,7 +39,15 @@ with pkgs.lib;
rm -f /root/key.pub
fi
fi
'';
};
jobs.printHostKey =
{ name = "print-host-key";
task = true;
startOn = "started sshd";
script =
''
# Print the host public key on the console so that the user
# can obtain it securely by parsing the output of
# ec2-get-console-output.
@ -49,5 +57,4 @@ with pkgs.lib;
'';
};
}