From 53a34e4186ec388844e84c60481b0a7a1f369041 Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 12 Jun 2008 17:15:05 +0000 Subject: [PATCH] add support for remoteshell setup on AIX git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1636 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/xcatconfig | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/xCAT-server/sbin/xcatconfig b/xCAT-server/sbin/xcatconfig index 1f2182ea4..c1fa746e9 100644 --- a/xCAT-server/sbin/xcatconfig +++ b/xCAT-server/sbin/xcatconfig @@ -452,7 +452,7 @@ if ((!-r $pubfile) || $::FORCE) ); } - # allows node be able to scp to the MN + # allows node be able to scp to the MN only for AIX my $cmd = "/bin/cat $pubfile >> /.ssh/authorized_keys"; my $outref = xCAT::Utils->runcmd("$cmd", 0); if ($::RUNCMD_RC != 0) @@ -632,7 +632,7 @@ if ((!-r "/etc/xcat/site.sqlite") || $::FORCE) if ($::osname eq 'AIX') { $chtabcmds .= - "$::XCATROOT/sbin/chtab key=remoteshell site.value=/bin/rsh;"; + "$::XCATROOT/sbin/chtab key=useSSHonAIX site.value=no;"; } my $outref = xCAT::Utils->runcmd("$chtabcmds", 0); @@ -646,12 +646,21 @@ if ((!-r "/etc/xcat/site.sqlite") || $::FORCE) } } -# create default postscript list in postscripts table +# create default postscript list in postscripts table if ((!-r "/etc/xcat/postscripts.sqlite") || $::FORCE) { my $chtabcmds; - $chtabcmds = - "$::XCATROOT/sbin/chtab node=xcatdefaults postscripts.postscripts='syslog,,remoteshell';"; + if ($::osname eq 'AIX') + { + $chtabcmds = + "$::XCATROOT/sbin/chtab node=xcatdefaults postscripts.postscripts='syslog,aixremoteshell';"; + } + else + { + $chtabcmds = + "$::XCATROOT/sbin/chtab node=xcatdefaults postscripts.postscripts='syslog,remoteshell';"; + } + $chtabcmds .= "$::XCATROOT/sbin/chtab node=service postscripts.postscripts='servicenode';";