throw a new exception if thelia is already install and install process is called
This commit is contained in:
@@ -23,5 +23,9 @@
|
|||||||
define('THELIA_INSTALL_MODE', true);
|
define('THELIA_INSTALL_MODE', true);
|
||||||
include __DIR__ . "/../../core/bootstrap.php";
|
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 = new \Thelia\Core\Thelia("install", false);
|
||||||
$thelia->boot();
|
$thelia->boot();
|
||||||
Reference in New Issue
Block a user