From: <sj...@us...> - 2011-08-04 07:18:30
|
Revision: 10221 http://xcat.svn.sourceforge.net/xcat/?rev=10221&view=rev Author: sjing Date: 2011-08-04 07:18:24 +0000 (Thu, 04 Aug 2011) Log Message: ----------- set site.useDNSonMN to 1 by default. Modified Paths: -------------- xcat-core/trunk/xCAT-server/sbin/xcatconfig Modified: xcat-core/trunk/xCAT-server/sbin/xcatconfig =================================================================== --- xcat-core/trunk/xCAT-server/sbin/xcatconfig 2011-08-04 06:57:18 UTC (rev 10220) +++ xcat-core/trunk/xCAT-server/sbin/xcatconfig 2011-08-04 07:18:24 UTC (rev 10221) @@ -993,6 +993,7 @@ $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 @@ 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 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |