2013-10-22 14:26:45 +02:00
|
|
|
#!/usr/bin/php
|
2014-11-12 13:13:39 +01:00
|
|
|
|
2013-10-22 14:26:45 +02:00
|
|
|
<?php
|
2014-11-12 13:13:39 +01:00
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
|
|
|
|
define('ICINGAWEB_BASEDIR', dirname(__DIR__));
|
|
|
|
// ICINGAWEB_BASEDIR is the parent folder for at least application, bin, modules, library/vendor and public
|
|
|
|
|
|
|
|
|
2014-11-12 13:48:26 +01:00
|
|
|
if (! @include_once ICINGAWEB_BASEDIR . '/library/Icinga/Application/Cli.php') {
|
2014-11-12 13:13:39 +01:00
|
|
|
// If the Icinga library wasn't found under ICINGAWEB_BASEDIR, require that the Icinga library is found in PHP's
|
|
|
|
// include path which is the case if Icinga Web 2 is installed via packages
|
|
|
|
require_once 'Icinga/Application/Cli.php';
|
|
|
|
}
|
2013-10-22 14:26:45 +02:00
|
|
|
|
2014-11-12 13:13:39 +01:00
|
|
|
Icinga\Application\Cli::start()->dispatch();
|