set site.useDNSonMN to 1 by default.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10221 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sjing 2011-08-04 07:18:24 +00:00
parent bf4861084a
commit 03ed1890c9

View File

@ -993,6 +993,7 @@ sub initDB
$chtabcmds .= "$::XCATROOT/sbin/chtab key=dnshandler site.value=ddns;";
$chtabcmds .= "$::XCATROOT/sbin/chtab key=vsftp site.value=y;";
$chtabcmds .= "$::XCATROOT/sbin/chtab key=cleanupxcatpost site.value=no;";
$chtabcmds .= "$::XCATROOT/sbin/chtab key=useDNSonMN site.value=1;";
if ($::osname eq 'AIX')
{
@ -1248,6 +1249,19 @@ sub initDB
xCAT::MsgUtils->message('E',"Could not set ddns as dnshandler.");
}
}
my $cmds = "$::XCATROOT/sbin/tabdump site|grep useDNSonMN";
$outref = xCAT::Utils->runcmd("$cmds", -1);
if ($::RUNCMD_RC != 0)
{
# set site.useDNSonMN
$cmds = "$::XCATROOT/sbin/chtab key=useDNSonMN site.value=1;";
$outref = xCAT::Utils->runcmd("$cmds", 0);
if ($::RUNCMD_RC != 0)
{
xCAT::MsgUtils->message('E',"Could not set site.useDNSonMN.");
}
}
}
} # end initial DB install setup