Ajout : etc/nsd3/zone.d/ : NS secondaire : ns6.gandi.net .
[lhc/ateliers.git] / etc / sv / nsd3 / configure.sh
index 0e870e3..2d8ac85 100644 (file)
@@ -1,5 +1,6 @@
 rule apt_get_install nsd
 rule insserv_remove  nsd3
+
 sudo rm -rf \
  /etc/nsd3/zone.d
 sudo install -d -m 750 -o root -g nsd \
@@ -25,13 +26,11 @@ sudo install -d -m 750 -o root -g nsd \
                 fi |
                sudo install -m 440 -o root -g nsd /dev/stdin \
                 /etc/nsd3/zone.d/"$domain".zone
-               sudo install -m 440 -o root -g nsd \
-                "$tool"/etc/nsd3/zone.d/"$conf" \
-                       /etc/nsd3/zone.d/"$conf"
                cat <<-EOF
                        zone:
                                name: $domain
                                zonefile: /etc/nsd3/zone.d/$domain.zone
+                               $(cat "$tool"/etc/nsd3/zone.d/"$conf")
                        EOF
         done
 } |