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