From d42b4c299c7400d728a7a6eeeabe6f0f4ac3f169 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 5 Feb 2021 22:21:31 +0100 Subject: Add requirements check in CLI (#3410) * Add requirements check in CLI #fix https://github.com/FreshRSS/FreshRSS/issues/1853 * More checks #fix https://github.com/FreshRSS/FreshRSS/issues/1853 --- app/actualize_script.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app/actualize_script.php') diff --git a/app/actualize_script.php b/app/actualize_script.php index 8bbc45e41..7df84b805 100755 --- a/app/actualize_script.php +++ b/app/actualize_script.php @@ -19,7 +19,6 @@ function notice($message) { session_cache_limiter(''); ob_implicit_flush(false); ob_start(); -echo 'Results: ', "\n"; //Buffered $begin_date = date_create('now'); @@ -39,7 +38,11 @@ define('SIMPLEPIE_SYSLOG_ENABLED', FreshRSS_Context::$system_conf->simplepie_sys notice('FreshRSS starting feeds actualization at ' . $begin_date->format('c')); // make sure the PHP setup of the CLI environment is compatible with FreshRSS as well +echo 'Failed requirements!', "\n"; performRequirementCheck(FreshRSS_Context::$system_conf->db['type']); +ob_clean(); + +echo 'Results: ', "\n"; //Buffered // Create the list of users to actualize. // Users are processed in a random order but always start with default user -- cgit v1.2.3