entrypoint.sh 440 B

123456789101112
  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. cp -f /etc/unbound/root.key /run/unbound/root.key
  7. # Fail fast on broken drop-in configs from /config before starting.
  8. unbound-checkconf /etc/unbound/unbound.conf
  9. exec unbound -d -c /etc/unbound/unbound.conf