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
This commit is contained in:
lissav 2008-01-23 17:49:04 +00:00
parent 66a9cb639c
commit 6c18d06a92

View File

@ -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