Skip to content

Commit

Permalink
cron.php calls occ system:cron as fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDiver1975 committed Sep 26, 2019
1 parent 07bc371 commit a0d4c20
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,8 @@
}

echo 'Please use ./occ system:cron' . PHP_EOL;
exit(1);
$return = \system('./occ system:cron');
// in case of an error while cron execution we exit with error code as well
if ($return === false) {
exit(1);
}

0 comments on commit a0d4c20

Please sign in to comment.