2814391, check both /usr/local/bin and /usr/bin for rsync
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3700 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
3f420eb478
commit
13c0a00b34
@ -3998,7 +3998,12 @@ sub parse_and_run_dcp
|
||||
{
|
||||
if ($^O eq 'aix')
|
||||
{
|
||||
$options{'node-rcp'} = '/usr/bin/rsync';
|
||||
if (-e ("/usr/bin/rsync")) {
|
||||
$options{'node-rcp'} = '/usr/bin/rsync';
|
||||
} else {
|
||||
$options{'node-rcp'} = '/usr/local/bin/rsync';
|
||||
}
|
||||
|
||||
}
|
||||
elsif ($^O eq 'linux')
|
||||
{
|
||||
|
@ -11,7 +11,12 @@ use base xCAT::DSHRemoteShell;
|
||||
|
||||
if ($^O eq 'aix')
|
||||
{
|
||||
our $RSYNC_CMD = '/usr/bin/rsync';
|
||||
|
||||
if (-e ("/usr/bin/rsync")) {
|
||||
our $RSYNC_CMD = '/usr/bin/rsync';
|
||||
} else {
|
||||
our $RSYNC_CMD = '/usr/local/bin/rsync';
|
||||
}
|
||||
}
|
||||
|
||||
if ($^O eq 'linux')
|
||||
|
Loading…
Reference in New Issue
Block a user