diff --git a/library/Icinga/Application/ApplicationBootstrap.php b/library/Icinga/Application/ApplicationBootstrap.php index a74a7f8c0..92fe9b660 100644 --- a/library/Icinga/Application/ApplicationBootstrap.php +++ b/library/Icinga/Application/ApplicationBootstrap.php @@ -259,15 +259,15 @@ abstract class ApplicationBootstrap } /** - * Get the path to the bootstrapping directory. + * Get the path to the bootstrapping directory * - * This is usually /public for Web and EmbeddedWeb + * This is usually /public for Web and EmbeddedWeb and /bin for the CLI * * @return string */ public function getBootstrapDirecory() { - return dirname($_SERVER['SCRIPT_FILENAME']); + return dirname(realpath($_SERVER['SCRIPT_FILENAME'])); } /**