Fix unbound reload issue (twas a file permission issue) and add basic ad blocking
This commit is contained in:
parent
084e07cb44
commit
407bc6f0d6
4 changed files with 31 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
set -eu
|
||||
#!/usr/local/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
readonly DHCPD_CONF_FILE='/etc/dhcpd.conf'
|
||||
readonly DHCPD_LEASES_FILE='/var/db/dhcpd.leases'
|
||||
|
@ -24,5 +24,6 @@ fi
|
|||
../dhcpd/list_active_assignments | ../unbound/local-data-file-generator > "$UNBOUND_LOCAL_DATA_FILE_TMP"
|
||||
|
||||
mv "$UNBOUND_LOCAL_DATA_FILE_TMP" "$UNBOUND_LOCAL_DATA_FILE"
|
||||
chmod 644 "$UNBOUND_LOCAL_DATA_FILE"
|
||||
|
||||
rcctl restart unbound
|
||||
rcctl reload unbound
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue