From 03ed1890c990cd28dbcce52eabc37a6759cf9d8c Mon Sep 17 00:00:00 2001 From: sjing Date: Thu, 4 Aug 2011 07:18:24 +0000 Subject: [PATCH] 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 --- xCAT-server/sbin/xcatconfig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/xCAT-server/sbin/xcatconfig b/xCAT-server/sbin/xcatconfig index 8c3bd41f3..1bd3631ad 100755 --- a/xCAT-server/sbin/xcatconfig +++ b/xCAT-server/sbin/xcatconfig @@ -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