icingaweb2/bin/icingacli

18 lines
615 B
Plaintext
Raw Normal View History

2013-10-22 14:26:45 +02:00
#!/usr/bin/php
2013-10-22 14:26:45 +02:00
<?php
// {{{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
if (! @include_once ICINGAWEB_BASEDIR . '/library/Icinga/Application/Cli.php') {
// 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
Icinga\Application\Cli::start()->dispatch();