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