X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fsv%2Funbound%2Fconfigure.sh;fp=etc%2Fsv%2Funbound%2Fconfigure.sh;h=fc59084bd418792c51f607a414c23d44861572af;hb=5ce6d51b9c15b2e316d60fad4ecfa1ea1b32bf7b;hp=0000000000000000000000000000000000000000;hpb=2e5bb0ff5df2b7a5d527a4f896b802df31d3c6bc;p=lhc%2Fateliers.git diff --git a/etc/sv/unbound/configure.sh b/etc/sv/unbound/configure.sh new file mode 100644 index 0000000..fc59084 --- /dev/null +++ b/etc/sv/unbound/configure.sh @@ -0,0 +1,17 @@ +sudo apt-get install unbound +rule insserv_remove unbound + +sudo install -m 644 -o root -g root /dev/stdin /etc/resolv.conf <<-EOF + search ${vm_host#*.} + nameserver 127.0.0.1 + #nameserver ${vm_host_nameserver} + EOF +sudo install -m 440 -o unbound -g unbound \ + "$tool"/etc/unbound/named.cache \ + /etc/unbound/named.cache + +m4 \ + --define=OUTGOING_INTERFACE=$vm_ipv4 \ + <"$tool"/etc/unbound/unbound.conf | +sudo install -m 440 -o unbound -g unbound /dev/stdin \ + /etc/unbound/unbound.conf