From 87ae0e53518215ad94bf57862f6e1848395cb96d Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Fri, 18 Apr 2014 17:24:04 +0200 Subject: [PATCH] throw a new exception if thelia is already install and install process is called --- web/install/bootstrap.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/install/bootstrap.php b/web/install/bootstrap.php index 90e395c88..66e6a5859 100644 --- a/web/install/bootstrap.php +++ b/web/install/bootstrap.php @@ -23,5 +23,9 @@ define('THELIA_INSTALL_MODE', true); include __DIR__ . "/../../core/bootstrap.php"; +if (file_exists(THELIA_ROOT . '/local/config/database.yml')) { + throw new \Thelia\Install\Exception\AlreadyInstallException("Thelia is already installed"); +} + $thelia = new \Thelia\Core\Thelia("install", false); $thelia->boot(); \ No newline at end of file