ConsoleCommand framework
This commit is contained in:
+1
-4
@@ -27,10 +27,7 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
$sapiName = php_sapi_name();
|
||||
if (substr($sapiName, 0, 3) != 'cli') {
|
||||
die("Cron can be run only via CLI");
|
||||
}
|
||||
if (substr(php_sapi_name(), 0, 3) != 'cli') die('Daemon can be run only via CLI.');
|
||||
|
||||
include "bootstrap.php";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user