fix for bug 2946441: use $::XCATROOT instead of hardcoded /opt/xcat
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5262 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
db72eff8d5
commit
11d16ebf55
@ -16,6 +16,10 @@ the sinv command.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
package xCAT::SINV;
|
||||
BEGIN
|
||||
{
|
||||
$::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : -d '/opt/xcat' ? '/opt/xcat' : '/usr';
|
||||
}
|
||||
use strict;
|
||||
use xCAT::MsgUtils;
|
||||
use xCAT::NodeRange;
|
||||
@ -1476,7 +1480,7 @@ sub storeresults
|
||||
xCAT::MsgUtils->message("E", $rsp, $callback);
|
||||
return 1;
|
||||
}
|
||||
my $cmd = " /opt/xcat/sbin/xdshcoll <$newtempfile |";
|
||||
my $cmd = " $::XCATROOT/sbin/xdshcoll <$newtempfile |";
|
||||
|
||||
open(XCOLL, "$cmd");
|
||||
if ($? > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user