Change the internal reboot/update mechanism to use the new "applyUpdates()" function instead of just systemReboot().

This commit is contained in:
Ken Moore
2017-11-17 16:02:39 -05:00
parent c5bf944017
commit f4a2459429

View File

@@ -384,7 +384,7 @@ void EventWatcher::CheckSystemState(){
QDateTime finished = sysadm::Update::rebootRequiredSince();
QDateTime cdt = QDateTime::currentDateTime();
if( (finished.addSecs(60*60*24)<cdt) || cdt.time().hour() == hour){ //more than 24 hours have passed, or time has come
sysadm::SysMgmt::systemReboot();
sysadm::Update::applyUpdates();
}
}
}