[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

@@ -267,6 +267,12 @@ QJsonObject Update::stopUpdate() {
return ret;
}
QJsonObject Update::applyUpdates(){
QJsonObject ret;
QProcess::startDetached("pc-updatemanager startupdate");
ret.insert("result","rebooting to complete updates");
return ret;
}
//SETTINGS OPTIONS
QJsonObject Update::readSettings(){
QJsonObject ret;