This repository has been archived on 2022-08-27. You can view files and clone it, but cannot push or open issues or pull requests.
docker-templates/pi-hole/unbound/unbound.sh

13 lines
306 B
Bash

#!/bin/ash
set -e
mkdir -p /etc/unbound/dev && \
cp -a /dev/random /dev/urandom /dev/null /etc/unbound/dev/
mkdir -p -m 700 /etc/unbound/var && \
/usr/sbin/unbound-anchor -a /etc/unbound/var/root.key && \
chown -R unbound:unbound /etc/unbound/var
exec /usr/sbin/unbound -d -c /etc/unbound/unbound.conf