unbound: Configure Safe Search dynamically

The safe search code relied on working DNS resolution, but
was executed before unbound was even started and no network
was brought up.

That resulted in no records being created and nothing being
filtered.

This will now set/reset safe search when the system connects
to the Internet.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Michael Tremer
2019-12-09 23:36:59 +00:00
committed by Arne Fitzenreiter
parent 1ec1e499d0
commit d7190078ce
6 changed files with 65 additions and 42 deletions

View File

@@ -0,0 +1,3 @@
#!/bin/bash
exec /etc/init.d/unbound update-safe-search