We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc0edb2 commit c2419b0Copy full SHA for c2419b0
server/lib/classes/cron.d/100-monitor_system_update.inc.php
@@ -82,7 +82,7 @@ public function onRunJob() {
82
* Then test the upgrade.
83
* if there is any output, then there is a needed update
84
*/
85
- $aptData = shell_exec('apt-get -s -qq dist-upgrade');
+ $aptData = shell_exec('while fuser /var/lib/dpkg/lock >/dev/null 2>&1 ; do sleep 2; done; apt-get -s -qq dist-upgrade');
86
if ($aptData == '') {
87
/* There is nothing to update! */
88
$state = 'ok';
0 commit comments