Skip to content

Commit

Permalink
gluon-config-mode-core: redirect gluon-reconfigure output
Browse files Browse the repository at this point in the history
The stdout output of gluon-web scripts is directly sent to uhttpd,
becoming a part of the HTML output or even replacing HTTP status or
headers. The output of gluon-reconfigure is not supposed to end up
there.

While we're at it, also add an exec to avoid an unnecessary shell
process.
  • Loading branch information
neocturne committed Feb 13, 2022
1 parent 9b0c548 commit 7b331c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function f:write()
uci:set("gluon-setup-mode", uci:get_first("gluon-setup-mode", "setup_mode"), "configured", true)
uci:save("gluon-setup-mode")

os.execute('gluon-reconfigure')
os.execute('exec gluon-reconfigure >/dev/null')

f.template = "wizard/reboot"
f.package = "gluon-config-mode-core"
Expand Down

0 comments on commit 7b331c2

Please sign in to comment.