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:
parent
10336a71c8
commit
a035f982d4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user