mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
CLI script shortened
This commit is contained in:
parent
a7627f0bae
commit
4ec54bc921
@ -2,14 +2,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Icinga\Application\Cli;
|
use Icinga\Application\Cli;
|
||||||
use Icinga\Cli\Params as CliParams;
|
require_once dirname(__DIR__) . '/library/Icinga/Application/Cli.php';
|
||||||
use Icinga\Application\Benchmark;
|
Cli::start('@icingaweb_config_path@')->dispatch();
|
||||||
|
|
||||||
set_include_path(
|
|
||||||
realpath(dirname(__FILE__) . '/../library/')
|
|
||||||
. ':' . get_include_path()
|
|
||||||
);
|
|
||||||
|
|
||||||
require_once 'Icinga/Application/Cli.php';
|
|
||||||
$app = Cli::start(dirname(__FILE__) . '/../config/')->dispatch();
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user