From cdd0af2092801c257101ffe1601ca75fc7500c3b Mon Sep 17 00:00:00 2001 From: xq2005 Date: Wed, 28 Nov 2012 03:23:12 +0000 Subject: [PATCH] the dns configure file on ubuntu /etc/bind/named.conf owner group should be bind git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14452 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ddns.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/ddns.pm b/xCAT-server/lib/xcat/plugins/ddns.pm index d36242108..3feb7b8b8 100644 --- a/xCAT-server/lib/xcat/plugins/ddns.pm +++ b/xCAT-server/lib/xcat/plugins/ddns.pm @@ -932,7 +932,12 @@ sub update_namedconf { for my $l (@newnamed) { print $newnameconf $l; } flock($newnameconf,LOCK_UN); close($newnameconf); - chown (scalar(getpwnam('root')),scalar(getgrnam('named')),$namedlocation); + if ( $distro =~ /ubuntu.*/ ){ + chown (scalar(getpwnam('root')),scalar(getgrnam('bind')),$namedlocation); + } + else{ + chown (scalar(getpwnam('root')),scalar(getgrnam('named')),$namedlocation); + } } sub add_or_delete_records {