mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 00:34:03 +02:00
Bootstrap: Only replace config dir with its canonicalised absolute pathname when the dir exists
This commit is contained in:
parent
5974305647
commit
53de3686a8
@ -151,10 +151,8 @@ abstract class ApplicationBootstrap
|
|||||||
$configDir = '/etc/icingaweb';
|
$configDir = '/etc/icingaweb';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->configDir = realpath($configDir);
|
$canonical = realpath($configDir);
|
||||||
if (!$this->configDir) {
|
$this->configDir = $canonical ? $canonical : $configDir;
|
||||||
$this->configDir = '/etc/icingaweb';
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->setupAutoloader();
|
$this->setupAutoloader();
|
||||||
$this->setupZendAutoloader();
|
$this->setupZendAutoloader();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user