From a0d4c20d3b9ca290760bca8fea81efdcbfd35ada Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Thu, 26 Sep 2019 12:29:42 +0200 Subject: [PATCH] cron.php calls occ system:cron as fallback --- cron.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cron.php b/cron.php index 26ede8d9a843..f482b2024661 100644 --- a/cron.php +++ b/cron.php @@ -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); +}