From 6c18d06a926dae15b6f9443ad0708444a9aaa72d Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 23 Jan 2008 17:49:04 +0000 Subject: [PATCH] Change check to OS type to setup root's home git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@320 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/remoteshell | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/remoteshell b/xCAT/postscripts/remoteshell index 4c0a4b13e..a19788a75 100755 --- a/xCAT/postscripts/remoteshell +++ b/xCAT/postscripts/remoteshell @@ -3,7 +3,12 @@ #egan@us.ibm.com #(C)IBM Corp # -my $homedir = $::ENV{'HOME'}; +my $homedir ; +if ($^O =~ /^aix/i) { # AIX + $homedir="/"; +} else { # LINUX + $homedir="/root"; +} if (-r "/etc/ssh/sshd_config") { # readable