parent
5b18ff7965
commit
4607a85cf5
|
@ -137,10 +137,16 @@ abstract class ApplicationBootstrap
|
|||
if ($configDir === null) {
|
||||
if (array_key_exists('ICINGAWEB_CONFIGDIR', $_SERVER)) {
|
||||
$configDir = $_SERVER['ICINGAWEB_CONFIGDIR'];
|
||||
} else {
|
||||
// default configuration path. Use /etc/icingaweb2 on linux
|
||||
// For config on windows - use config folder within php code
|
||||
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
|
||||
$configDir = $baseDir . '/config';
|
||||
} else {
|
||||
$configDir = '/etc/icingaweb2';
|
||||
}
|
||||
}
|
||||
}
|
||||
$canonical = realpath($configDir);
|
||||
$this->configDir = $canonical ? $canonical : $configDir;
|
||||
|
||||
|
|
Loading…
Reference in New Issue