Correction : local/network-configure
[lhc/ateliers.git] / etc / sv / unbound / local.sh
index 0b68dca..866f665 100644 (file)
@@ -1,17 +1,12 @@
 sudo apt-get install unbound
 "$tool"/local/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 \
+ --define=OUTGOING_INTERFACE=$local_ipv4 \
  <"$tool"/etc/unbound/unbound.conf |
 sudo install -m 440 -o unbound -g unbound /dev/stdin \
  /etc/unbound/unbound.conf