mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
Revert "IIS: use 'config' folder within icingaweb root on windows"
This reverts commit 4607a85cf5745bb99a12f4b5e829447d82c09f6e.
This commit is contained in:
parent
4607a85cf5
commit
1e0219f697
@ -138,13 +138,7 @@ abstract class ApplicationBootstrap
|
|||||||
if (array_key_exists('ICINGAWEB_CONFIGDIR', $_SERVER)) {
|
if (array_key_exists('ICINGAWEB_CONFIGDIR', $_SERVER)) {
|
||||||
$configDir = $_SERVER['ICINGAWEB_CONFIGDIR'];
|
$configDir = $_SERVER['ICINGAWEB_CONFIGDIR'];
|
||||||
} else {
|
} else {
|
||||||
// default configuration path. Use /etc/icingaweb2 on linux
|
$configDir = '/etc/icingaweb2';
|
||||||
// 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);
|
$canonical = realpath($configDir);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user