entrypoint.sh 527 B

12345678910111213
  1. #!/bin/sh
  2. set -e
  3. # Copy the static root trust anchor into the writable run-dir.
  4. # unbound updates auto-trust-anchor-file in place (RFC5011 rollover), so it
  5. # must live on a writable filesystem (tmpfs when running with read_only).
  6. # Anchor ships in the dnssec-root package at /usr/share/dnssec-root/.
  7. cp -f /usr/share/dnssec-root/trusted-key.key /run/unbound/root.key
  8. # Fail fast on broken drop-in configs from /config before starting.
  9. unbound-checkconf /etc/unbound/unbound.conf
  10. exec unbound -d -c /etc/unbound/unbound.conf