support site.ntpservers=<xcatmaster>
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11521 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
2226fc631a
commit
08c759d221
@ -1713,6 +1713,11 @@ sub addnet
|
||||
{
|
||||
$nameservers = $myip;
|
||||
}
|
||||
|
||||
if (!$ntpservers || ($ntpservers eq '<xcatmaster>'))
|
||||
{
|
||||
$ntpservers = $myip;
|
||||
}
|
||||
|
||||
$nameservers=putmyselffirst($nameservers);
|
||||
$ntpservers=putmyselffirst($ntpservers);
|
||||
@ -1821,8 +1826,6 @@ sub addnet
|
||||
}
|
||||
if ($ntpservers) {
|
||||
push @netent, " option ntp-servers $ntpservers;\n";
|
||||
} elsif ($myip){
|
||||
push @netent, " option ntp-servers $myip;\n";
|
||||
}
|
||||
if ($nameservers)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user