mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-24 05:11:12 +00:00
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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user