Look for ICINGAWEB_CONFIGDIR in $_ENV too.

Refs #5638
This commit is contained in:
Michael Friedrich 2014-04-23 11:23:29 +02:00
parent a7b5893918
commit f510130797
1 changed files with 2 additions and 0 deletions

View File

@ -142,6 +142,8 @@ abstract class ApplicationBootstrap
if ($configDir === null) {
if (array_key_exists('ICINGAWEB_CONFIGDIR', $_SERVER)) {
$configDir = $_SERVER['ICINGAWEB_CONFIGDIR'];
} else if (array_key_exists('ICINGAWEB_CONFIGDIR', $_ENV)) {
$configDir = $_ENV['ICINGAWEB_CONFIGDIR'];
} else {
$configDir = '/etc/icingaweb';
}