mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 02:20:17 +00:00
Change the internal reboot/update mechanism to use the new "applyUpdates()" function instead of just systemReboot().
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user