fix default is ssh on AIX when the useSSHonAIX attribute does not exist
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6061 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
d75d747b19
commit
3be86db95d
@ -322,10 +322,14 @@ sub get_xcat_remote_cmds
|
||||
# override with site table settings, if they exist
|
||||
my $ssh_setup = 0;
|
||||
my @useSSH = xCAT::Utils->get_site_attribute("useSSHonAIX");
|
||||
$useSSH[0] =~ tr/a-z/A-Z/; # convert to upper
|
||||
if (($useSSH[0] eq "1") || ($useSSH[0] eq "YES"))
|
||||
{
|
||||
$ssh_setup = 1;
|
||||
if (defined($useSSH[0])) {
|
||||
$useSSH[0] =~ tr/a-z/A-Z/; # convert to upper
|
||||
if (($useSSH[0] eq "1") || ($useSSH[0] eq "YES"))
|
||||
{
|
||||
$ssh_setup = 1;
|
||||
}
|
||||
} else { # default is SSH
|
||||
$ssh_setup = 1;
|
||||
}
|
||||
if (xCAT::Utils->isLinux()) {
|
||||
$XCAT_RSH_CMD = "/usr/bin/ssh"; # use ssh
|
||||
|
Loading…
Reference in New Issue
Block a user