mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
dnsmasq/unbound - mark 'template reload' action as cleanup.
Ideally these spots should not be needed as the frontend generates the configuration and on boot these are flushed as well, ... but, when interfaces change during boot or triggered by the wizard, these parts are not aware of these facts. as discussed with @fichtner
This commit is contained in:
parent
b50a9eec0f
commit
3e299b29b9
@ -150,6 +150,9 @@ function dnsmasq_configure_do($verbose = false)
|
||||
|
||||
_dnsmasq_add_host_entries();
|
||||
|
||||
/* XXX: cleanup, should have been run, but interface changes during boot or wizard are messing things up */
|
||||
configd_run('template reload OPNsense/Dnsmasq');
|
||||
|
||||
mwexec('/usr/local/etc/rc.d/dnsmasq start');
|
||||
|
||||
if (!empty($config['dnsmasq']['regdhcp'])) {
|
||||
|
||||
@ -350,6 +350,7 @@ EOD;
|
||||
chmod($root_hints_tmp, 0644);
|
||||
rename($root_hints_tmp, '/var/unbound/root.hints');
|
||||
|
||||
/* XXX: cleanup, should have been run, but interface changes during boot or wizard are messing things up */
|
||||
configd_run('template reload OPNsense/Unbound/*');
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user