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:
lissav 2009-07-04 12:35:42 +00:00
parent 3f420eb478
commit 13c0a00b34
2 changed files with 12 additions and 2 deletions

View File

@ -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')
{

View File

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