13 lines
306 B
Bash
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
|