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 \
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
} |