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