Skip to content

Commit

Permalink
force dnsmasq reload after applying a config
Browse files Browse the repository at this point in the history
Signed-off-by: John Crispin <[email protected]>
  • Loading branch information
blogic committed Oct 22, 2021
1 parent d59450b commit 6b3bdb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion renderer/ucentral.uc
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ try {
for (let cmd in [ 'uci -c /tmp/config-shadow commit',
'cp /tmp/config-shadow/* /etc/config/',
'rm -rf /tmp/config-shadow',
'reload_config'])
'reload_config',
'/etc/init.d/dnsmasq restart'])
system(cmd);

let old_config = fs.readlink("/etc/ucentral/ucentral.active");
Expand Down

0 comments on commit 6b3bdb1

Please sign in to comment.