CLI script shortened

This commit is contained in:
Thomas Gelf 2014-03-04 16:25:43 +00:00
parent a7627f0bae
commit 4ec54bc921
1 changed files with 2 additions and 11 deletions

View File

@ -2,14 +2,5 @@
<?php
use Icinga\Application\Cli;
use Icinga\Cli\Params as CliParams;
use Icinga\Application\Benchmark;
set_include_path(
realpath(dirname(__FILE__) . '/../library/')
. ':' . get_include_path()
);
require_once 'Icinga/Application/Cli.php';
$app = Cli::start(dirname(__FILE__) . '/../config/')->dispatch();
require_once dirname(__DIR__) . '/library/Icinga/Application/Cli.php';
Cli::start('@icingaweb_config_path@')->dispatch();