[API CHANGE] Add a new API call for sysadm/update: action="applyupdate".

This takes no other inputs, and returns the following:
{
"applyupdate" : {
  "result" : "rebooting to apply updates"
  }
}
This commit is contained in:
Ken Moore
2017-11-17 15:58:37 -05:00
parent 2157dbb6c2
commit c5bf944017
3 changed files with 11 additions and 0 deletions

View File

@@ -650,6 +650,10 @@ RestOutputStruct::ExitCode WebSocket::EvaluateSysadmUpdateRequest(const QJsonVal
ok = true;
out->insert("stopupdate", sysadm::Update::stopUpdate() );
}else if(act=="applyupdate"){
ok = true;
out->insert("applyupdate", sysadm::Update::applyUpdates() );
}else if(act=="listsettings"){
ok = true;
out->insert("listsettings", sysadm::Update::readSettings() );