docker-entrypoint.sh 464 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. echo "Setting console permissions..."
  3. chown root:tty /dev/console
  4. chmod g+rw /dev/console
  5. echo "Receiving anchor key..."
  6. /usr/sbin/unbound-anchor -a /etc/unbound/trusted-key.key
  7. echo "Receiving root hints..."
  8. curl -#o /etc/unbound/root.hints https://www.internic.net/domain/named.cache
  9. /usr/sbin/unbound-control-setup
  10. # Run hooks
  11. for file in /hooks/*; do
  12. if [ -x "${file}" ]; then
  13. echo "Running hook ${file}"
  14. "${file}"
  15. fi
  16. done
  17. exec "$@"