mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 10:20:26 +00:00
[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user