remove setting of nameservers from makenetworks routine, already covered in initDB
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9226 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
cf7372ed2e
commit
fe0d60e2d3
@ -1632,24 +1632,6 @@ sub makenetworks
|
||||
"The makenetworks command was run with no error.");
|
||||
}
|
||||
|
||||
# set the nameserver in the site table
|
||||
my @names =
|
||||
xCAT::Utils->runcmd(
|
||||
"/bin/grep ^[^#]*nameserver /etc/resolv.conf | awk '{print \$2}'",
|
||||
0);
|
||||
my $ns = join(',', @names);
|
||||
$cmd = "$::XCATROOT/sbin/chtab key=nameservers site.value=$ns";
|
||||
$outref = xCAT::Utils->runcmd("$cmd", 0);
|
||||
if ($::RUNCMD_RC != 0)
|
||||
{
|
||||
xCAT::MsgUtils->message('E',
|
||||
"The chtab command returned error: $::RUNCMD_RC.");
|
||||
}
|
||||
else
|
||||
{
|
||||
verbose(
|
||||
"Updated the site definition with the value of the nameserver.");
|
||||
}
|
||||
|
||||
# restart httpd
|
||||
if (-e "/etc/init.d/apache2")
|
||||
|
Loading…
Reference in New Issue
Block a user