Skip to content
Snippets Groups Projects
Commit 02c8650b authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-scheduled-domain-switch: use gluon-switch-domain

parent 6ab9d341
No related branches found
No related tags found
No related merge requests found
......@@ -60,8 +60,5 @@ if not switch_after_min_reached() and not switch_time_passed() then
os.exit(0)
end
uci:set("gluon", "core", "domain", target_domain)
uci:commit("gluon")
os.execute("gluon-reconfigure")
os.execute("reboot")
local cmd = {[0] = 'gluon-switch-domain', target_domain}
unistd.execp(cmd[0], cmd)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment