support makeknownhosts on debian/ubuntu

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15477 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2013-03-13 10:06:38 +00:00
parent e05797bb60
commit 2ce147d84b

View File

@ -687,7 +687,7 @@ sub genSSHRootKeys
}
}
if ( -e "/etc/debian_version" ){
$out = `/bin/cat $cfgfile | grep 'HashKnownHosts'`;
my $out = `/bin/cat $cfgfile | grep 'HashKnownHosts'`;
if ( $out ){
`/bin/sed -e 's/.*HashKnownHosts.*/HashKnownHosts no/' $cfgfile > tempcfg;mv -f tempcfg $cfgfile`
}