diff --git a/index.php b/index.php index df5bd1c02a..29421df556 100644 --- a/index.php +++ b/index.php @@ -1,11 +1,18 @@ getContainer()->get('config')->get('configPath'); +if (!file_exists($configFile)) { + header("Location: install/"); + exit; +} + if (empty($_GET['entryPoint'])) { include "main.html"; } else { - include "bootstrap.php"; - - $app = new \Espo\Core\Application(); $app->runEntryPoint($_GET['entryPoint']); }