mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
ConsoleCommand framework
This commit is contained in:
@@ -27,11 +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("Rebuild can be run only via CLI");
|
||||
}
|
||||
if (substr(php_sapi_name(), 0, 3) != 'cli') die('ClearCache can be run only via CLI.');
|
||||
|
||||
include "bootstrap.php";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user