diff --git a/admin/admin-cli.php b/admin/admin-cli.php index d23da2697d..87bed6fa92 100755 --- a/admin/admin-cli.php +++ b/admin/admin-cli.php @@ -1,4 +1,4 @@ -#!/usr/bin/php -qC +#!/usr/bin/env php test-cli.php must NOT be called as web-page --> exiting !!!'); } -require_once './api/src/loader/common.php'; +ini_set('apc.enable_cli', true); + +require_once dirname(__DIR__).'/api/src/loader/common.php'; $_SERVER['argv'][] = '--verbose'; $_SERVER['argv'][] = 'EgroupwareTestRunner'; diff --git a/filemanager/cli.php b/filemanager/cli.php index aa37b1b32e..977c3e519a 100755 --- a/filemanager/cli.php +++ b/filemanager/cli.php @@ -1,4 +1,4 @@ -#!/usr/bin/php -qC +#!/usr/bin/env php