mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Use getenv() instead of $_SERVER to get ICINGAWEB_CONFIGDIR
refs #10488
This commit is contained in:
parent
643ee7b108
commit
414a78d532
@ -138,9 +138,8 @@ abstract class ApplicationBootstrap
|
|||||||
$this->setupAutoloader();
|
$this->setupAutoloader();
|
||||||
|
|
||||||
if ($configDir === null) {
|
if ($configDir === null) {
|
||||||
if (array_key_exists('ICINGAWEB_CONFIGDIR', $_SERVER)) {
|
$configDir = getenv('ICINGAWEB_CONFIGDIR');
|
||||||
$configDir = $_SERVER['ICINGAWEB_CONFIGDIR'];
|
if ($configDir === false) {
|
||||||
} else {
|
|
||||||
$configDir = Platform::isWindows()
|
$configDir = Platform::isWindows()
|
||||||
? $baseDir . '/config'
|
? $baseDir . '/config'
|
||||||
: '/etc/icingaweb2';
|
: '/etc/icingaweb2';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user