|
@@ -17,12 +17,11 @@
|
|
|
exec("cp {$path}/../data/unbound.conf.d/* /etc/unbound/unbound.conf.d/");
|
|
exec("cp {$path}/../data/unbound.conf.d/* /etc/unbound/unbound.conf.d/");
|
|
|
|
|
|
|
|
# Keep root.hints reasonbly up to date without being obnoxious
|
|
# Keep root.hints reasonbly up to date without being obnoxious
|
|
|
- if (!file_exists("/etc/unbound/root.hints") || ((time() - filemtime("/etc/unbound/root.hints")) > ($refresh_root_hint_days * 86400))){
|
|
|
|
|
- system("curl -o /etc/unbound/root.hints https://www.internic.net/domain/named.cache");
|
|
|
|
|
|
|
+ if (!file_exists("/usr/local/etc/unbound/root.hints") || ((time() - filemtime("/usr/local/etc/unbound/root.hints")) > ($refresh_root_hint_days * 86400))){
|
|
|
|
|
+ system("curl -o /usr/local/etc/unbound/root.hints https://www.internic.net/domain/named.cache");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- system("systemctl restart unbound");
|
|
|
|
|
|
|
+ system("service unbound restart");
|
|
|
}
|
|
}
|
|
|
sleep(5);
|
|
sleep(5);
|
|
|
}
|
|
}
|
|
|
-
|
|
|