add initialization of environment variable XCATROOT
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12206 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
e4712c5a5b
commit
57518648b9
@ -9,6 +9,13 @@ use File::Path;
|
||||
#use Data::Dumper;
|
||||
use Sys::Syslog;
|
||||
use xCAT::ADUtils; #to allow setting of one-time machine passwords
|
||||
|
||||
BEGIN
|
||||
{
|
||||
$::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : '/opt/xcat';
|
||||
}
|
||||
|
||||
|
||||
my $netdnssupport = eval {
|
||||
require Net::DNS;
|
||||
1;
|
||||
|
Loading…
Reference in New Issue
Block a user