X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fsv%2Fnsd3%2Fconfigure.sh;h=2d8ac8500c46c91dac966f2c090d2584edcca20c;hb=8c03e49457c0e76993db2ae142c5550af5e6dfdc;hp=0e870e36ba65bc55876d2c26a68621fb7f2d3696;hpb=bcf89f99a16963440e4bdaf8d56629eee271cd99;p=lhc%2Fateliers.git diff --git a/etc/sv/nsd3/configure.sh b/etc/sv/nsd3/configure.sh index 0e870e3..2d8ac85 100644 --- a/etc/sv/nsd3/configure.sh +++ b/etc/sv/nsd3/configure.sh @@ -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 } |