Ignore unexpected output causing bad gateway error (#591)

This commit is contained in:
Tim Wilkinson 2022-12-25 05:13:04 -08:00 committed by GitHub
parent 169b58a4fb
commit 6fba065d2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -829,16 +829,16 @@ if parms.button_save and not (#port_err > 0 or #dhcp_err > 0 or #dmz_err > 0 or
filecopy(tmpdir .. "/services", servfile) filecopy(tmpdir .. "/services", servfile)
filecopy(tmpdir .. "/aliases", aliasfile) filecopy(tmpdir .. "/aliases", aliasfile)
if os.execute("/usr/local/bin/node-setup -a -p mesh") ~= 0 then if os.execute("/usr/local/bin/node-setup -a -p mesh > /dev/null 2>&1") ~= 0 then
err("problem with configuration") err("problem with configuration")
end end
if os.execute("/etc/init.d/dnsmasq restart") ~= 0 then if os.execute("/etc/init.d/dnsmasq restart > /dev/null 2>&1") ~= 0 then
err("problem with dnsmasq") err("problem with dnsmasq")
end end
if os.execute("/etc/init.d/firewall restart") ~= 0 then if os.execute("/etc/init.d/firewall restart > /dev/null 2>&1") ~= 0 then
err("problem with port setup") err("problem with port setup")
end end
if os.execute("/etc/init.d/olsrd restart") ~= 0 then if os.execute("/etc/init.d/olsrd restart > /dev/null 2>&1") ~= 0 then
err("problem with olsr setup") err("problem with olsr setup")
end end
end end