Updated setup.php

This commit is contained in:
K Rahul Reddy 2020-06-19 21:52:56 +05:30
parent 95d2dd74ad
commit 37f0b51dff

View File

@ -77,15 +77,17 @@ if ($aCMDResult['create-db'] || $aCMDResult['all']) {
$oSetup->createDB();
}
$oSetup->connect();
if (!$aCMDResult['setup-website']) {
$oSetup->connect();
// Try accessing the C module, so we know early if something is wrong
checkModulePresence(); // raises exception on failure
}
if ($aCMDResult['setup-db'] || $aCMDResult['all']) {
$bDidSomething = true;
$oSetup->setupDB();
}
// Try accessing the C module, so we know early if something is wrong
checkModulePresence(); // raises exception on failure
if ($aCMDResult['import-data'] || $aCMDResult['all']) {
$bDidSomething = true;