From 746eef7bd949286b1e2e142f645a31e85560c422 Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 1 Mar 2011 16:34:47 +0000 Subject: [PATCH] take out xCATSN check and check for NTYPE env variable git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8952 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/aixremoteshell | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT/postscripts/aixremoteshell b/xCAT/postscripts/aixremoteshell index 3e93d8715..54884f076 100755 --- a/xCAT/postscripts/aixremoteshell +++ b/xCAT/postscripts/aixremoteshell @@ -37,6 +37,7 @@ my $rc = 0; my $usesshonaix = $ENV{'USESSHONAIX'}; my $master = $ENV{'MASTER'}; my $node = $ENV{'NODE'}; +my $nodetype = $ENV{'NTYPE'}; my $enablesshbetweennodes = $ENV{'ENABLESSHBETWEENNODES'}; my $msg; my $home; @@ -181,8 +182,7 @@ sub setupSSH $msg = "aixremoteshell: Could not get ssh_host_rsa_key file.\n"; `logger -t xcat $msg`; } - - if ( -f "/etc/xCATSN") { + if ( $nodetype eq "service") { &runcmd("mkdir -p /etc/xcat/hostkeys; cp /etc/ssh/ssh* /etc/xcat/hostkeys/. > /dev/null 2>&1"); } # Decide whether to enable ssh between the nodes