unbound: Make dhcp-leases.conf readable for everyone

unbound runs as nobody and cannot reload its configuration
when this file is only readable for root.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2020-01-13 21:43:27 +01:00
parent 04b7a78140
commit 7be4822f3d
2 changed files with 7 additions and 0 deletions

View File

@@ -87,6 +87,9 @@ main() {
# Set correct ownership.
chown nobody:nobody /var/ipfire/dns/servers
# Make DHCP leases readable for nobody
chown 644 /etc/unbound/dhcp-leases.conf
}
main "$@" || exit $?