From 77cfc892c1f7515daf484cde34fcc57c9cccb23a Mon Sep 17 00:00:00 2001 From: nott Date: Fri, 7 Mar 2008 19:52:29 +0000 Subject: [PATCH] Add rsh & rcp to site table for AIX. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@725 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/sbin/xcatconfig | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xCAT-server-2.0/sbin/xcatconfig b/xCAT-server-2.0/sbin/xcatconfig index e61b78996..144bf4747 100644 --- a/xCAT-server-2.0/sbin/xcatconfig +++ b/xCAT-server-2.0/sbin/xcatconfig @@ -337,7 +337,13 @@ if (( ! -r "/etc/xcat/site.sqlite" ) || $::FORCE){ $chtabcmds .= "$::XCATROOT/sbin/chtab key=installdir site.value=$installdir;"; $chtabcmds .= "$::XCATROOT/sbin/chtab key=master site.value=$master;"; $chtabcmds .= "$::XCATROOT/sbin/chtab key=domain site.value=$domain;"; - $chtabcmds .= "$::XCATROOT/sbin/chtab key=timezone site.value=$timezone"; + if ($::osname eq 'Linux') { + $chtabcmds .= "$::XCATROOT/sbin/chtab key=timezone site.value=$timezone"; + } + if ($::osname eq 'AIX') { + $chtabcmds .= "$::XCATROOT/sbin/chtab key=rsh site.value=/bin/rsh;"; + $chtabcmds .= "$::XCATROOT/sbin/chtab key=rcp site.value=/bin/rcp;"; + } my $outref = xCAT::Utils->runcmd("$chtabcmds", 0); if ($::RUNCMD_RC != 0)