throw a new exception if thelia is already install and install process is called

This commit is contained in:
Manuel Raynaud
2014-04-18 17:24:04 +02:00
parent cb16b534d1
commit 87ae0e5351

View File

@@ -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();