mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-29 15:51:18 +00:00
fix defect 2983092 use /opt/xcat and not hardcode path to makenamed.conf
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5697 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
@@ -701,8 +701,14 @@ sub setup_FTP
|
||||
sub setup_DNS
|
||||
{
|
||||
|
||||
my $XCATROOT = "/opt/xcat"; # default
|
||||
|
||||
if ($ENV{'XCATROOT'})
|
||||
{
|
||||
$XCATROOT = $ENV{'XCATROOT'};
|
||||
}
|
||||
# setup the named.conf file
|
||||
system("/opt/xcat/sbin/makenamed.conf");
|
||||
system("$XCATROOT/sbin/makenamed.conf");
|
||||
|
||||
# turn DNS on
|
||||
|
||||
|
Reference in New Issue
Block a user