mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
unbound: run "time-fix" before savesearch resolves
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -587,7 +587,7 @@ case "$1" in
|
|||||||
sleep 1
|
sleep 1
|
||||||
$0 start
|
$0 start
|
||||||
;;
|
;;
|
||||||
reload|remove-forwarders)
|
reload|remove-forwarders|update-forwarders)
|
||||||
# Update configuration files
|
# Update configuration files
|
||||||
write_forward_conf
|
write_forward_conf
|
||||||
write_hosts_conf
|
write_hosts_conf
|
||||||
@@ -595,6 +595,14 @@ case "$1" in
|
|||||||
# Call unbound-control and perform the reload
|
# Call unbound-control and perform the reload
|
||||||
/usr/sbin/unbound-control -q reload
|
/usr/sbin/unbound-control -q reload
|
||||||
|
|
||||||
|
# Dummy Resolve to wait for unbound
|
||||||
|
resolve "ping.ipfire.org" &>/dev/null
|
||||||
|
|
||||||
|
if [ "$1" = "update-forwarders" ]; then
|
||||||
|
# Make sure DNS works at this point
|
||||||
|
fix_time_if_dns_fails
|
||||||
|
fi
|
||||||
|
|
||||||
# Update Safe Search rules if the system is online.
|
# Update Safe Search rules if the system is online.
|
||||||
if [ -e "/var/ipfire/red/active" ]; then
|
if [ -e "/var/ipfire/red/active" ]; then
|
||||||
update_safe_search
|
update_safe_search
|
||||||
@@ -605,9 +613,6 @@ case "$1" in
|
|||||||
statusproc /usr/sbin/unbound
|
statusproc /usr/sbin/unbound
|
||||||
;;
|
;;
|
||||||
|
|
||||||
update-forwarders)
|
|
||||||
$0 reload
|
|
||||||
|
|
||||||
# Make sure DNS works at this point
|
# Make sure DNS works at this point
|
||||||
fix_time_if_dns_fails
|
fix_time_if_dns_fails
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user