From 890d2b321e57cafb7856a90dc16a971467e6c7c4 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Mon, 7 Jan 2013 07:22:27 +0000 Subject: [PATCH] ddns support on debian git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14771 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ddns.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/ddns.pm b/xCAT-server/lib/xcat/plugins/ddns.pm index 7083b86b6..9df9f1a13 100644 --- a/xCAT-server/lib/xcat/plugins/ddns.pm +++ b/xCAT-server/lib/xcat/plugins/ddns.pm @@ -20,7 +20,7 @@ my $distro = xCAT::Utils->osver(); my $service="named"; # is this ubuntu ? -if ( $distro =~ /ubuntu.*/ ){ +if ( $distro =~ /ubuntu.*/i || $distro =~ /debian.*/i ){ $service = "bind9"; } @@ -575,7 +575,7 @@ sub get_zonesdir { sub get_conf { my $conf="/etc/named.conf"; # is this ubuntu ? - if ( $distro =~ /ubuntu.*/ ){ + if ( $distro =~ /ubuntu.*/i || $distro =~ /debian.*/i ){ $conf="/etc/bind/named.conf"; } @@ -715,7 +715,7 @@ sub update_zones { } flock($zonehdl,LOCK_UN); close($zonehdl); - if ( $distro =~ /ubuntu.*/ ){ + if ( $distro =~ /ubuntu.*/i || $distro =~ /debian.*/i ){ chown(scalar(getpwnam('root')),scalar(getgrnam('bind')),$dbdir."/db.$zonefilename"); } else{ @@ -937,7 +937,7 @@ sub update_namedconf { for my $l (@newnamed) { print $newnameconf $l; } flock($newnameconf,LOCK_UN); close($newnameconf); - if ( $distro =~ /ubuntu.*/ ){ + if ( $distro =~ /ubuntu.*/i || $distro =~ /debian.*/i ){ chown (scalar(getpwnam('root')),scalar(getgrnam('bind')),$namedlocation); } else{