hostkey check must be in both the /install/postscript/hostkey and the /etc/xcat/hostkey directory

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3334 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2009-05-11 12:16:54 +00:00
parent 10336a71c8
commit a035f982d4

View File

@ -281,7 +281,8 @@ if (-f "/install/postscripts/hostkeys/ssh_host_key")
# if hostkey does not exist or force option, regenerate
my $hostkey = "/install/postscripts/hostkeys/ssh_host_rsa_key.pub";
if ((!-r $hostkey) || $::FORCE)
my $hostkey2 = "/etc/xcat/hostkeys/ssh_host_rsa_key.pub";
if ((!-r $hostkey) || (!-r $hostkey2) || $::FORCE)
{
# remove the old keys