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