entrypoint.sh 606 B

1234567891011121314151617
  1. #!/bin/sh
  2. set -e
  3. # RFC5011 root trust anchor: persistent across restarts.
  4. # Initialize from the dnssec-root package ONLY if no state file exists yet;
  5. # afterwards unbound maintains the file itself (learned keys, rollover
  6. # state). /var/unbound is a named volume in the compose template (writable
  7. # by uid 1500).
  8. mkdir -p /var/unbound
  9. if [ ! -f /var/unbound/root.key ]; then
  10. cp -f /usr/share/dnssec-root/trusted-key.key /var/unbound/root.key
  11. fi
  12. # Fail fast on broken drop-in configs from /config before starting.
  13. unbound-checkconf /etc/unbound/unbound.conf
  14. exec unbound -d -c /etc/unbound/unbound.conf