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:
parent
e05797bb60
commit
2ce147d84b
@ -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`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user