mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 18:20:23 +00:00
Fix the update process detection command - needs a return code of 0 to tell if there is a process running.
This commit is contained in:
@@ -23,7 +23,8 @@ QJsonObject Update::checkUpdates() {
|
||||
}
|
||||
if(QFile::exists("/tmp/.updateInProgress")){
|
||||
//See if the process is actually running
|
||||
if( 0==General::RunCommand("pgrep -F /tmp/.updateInProgress") ){
|
||||
if( General::RunQuickCommand("pgrep -F /tmp/.updateInProgress") ){
|
||||
//Success if return code == 0
|
||||
retObject.insert("status","updaterunning");
|
||||
return retObject;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user