Revert "IIS: use 'config' folder within icingaweb root on windows"

This reverts commit 4607a85cf5745bb99a12f4b5e829447d82c09f6e.
This commit is contained in:
Alexander A. Klimov 2015-06-12 10:38:11 +02:00
parent 4607a85cf5
commit 1e0219f697

View File

@ -138,13 +138,7 @@ abstract class ApplicationBootstrap
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';
}
$configDir = '/etc/icingaweb2';
}
}
$canonical = realpath($configDir);