Skip to content

Commit

Permalink
fix #2491 : check if there is a update process
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Apr 9, 2024
1 parent 36abdee commit 1a2cb34
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions desktop/php/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
echo '<div class="alert alert-danger">{{Erreur sur la vérification des mises à jour :}}' . ' ' . $e->getMessage() . '</div>';
}
}

$hardware = jeedom::getHardwareName();
$distrib = system::getDistrib();
$coreRemoteVersion = update::byLogicalId('jeedom')->getRemoteVersion();
Expand Down Expand Up @@ -37,7 +36,7 @@
}
}
$logUpdate = log::getLastLine('update');
if (strpos($logUpdate, 'END UPDATE')) {
if (strpos($logUpdate, 'END UPDATE') || count(system::ps('install/update.php', 'sudo')) == 0) {
sendVarToJS('jeephp2js.isUpdating', '0');
} else {
sendVarToJS('jeephp2js.isUpdating', '1');
Expand Down

0 comments on commit 1a2cb34

Please sign in to comment.