unbound: fix bail on python glue chown (read-only error)

This commit is contained in:
Franco Fichtner 2022-10-14 20:37:23 +02:00
parent 3edd472aaa
commit 5d62b395d1

View File

@ -59,10 +59,10 @@ for FILE in $(find /usr/local/etc/unbound.opnsense.d -depth 1 -name '*.conf'); d
cp ${FILE} /var/unbound/etc/
done
# preload the blocklist cache so the dnsbl hook can properly diff on it
cp /usr/local/etc/unbound.opnsense.d/dnsbl.conf /tmp/unbound_dnsbl.cache || true
# XXX remove obsolete file, last used in 22.7
rm -f /usr/local/etc/unbound.opnsense.d/dnsbl.conf
chown -R unbound:unbound /var/unbound
chown -R unbound:unbound /var/unbound || true
/usr/local/sbin/unbound -c /var/unbound/unbound.conf
/usr/local/opnsense/scripts/unbound/cache.sh load