From 37f0b51dffa90b09d36b598f773571fdfec787fa Mon Sep 17 00:00:00 2001 From: K Rahul Reddy Date: Fri, 19 Jun 2020 21:52:56 +0530 Subject: [PATCH] Updated setup.php --- utils/setup.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/utils/setup.php b/utils/setup.php index db17b8f5..e0f74427 100644 --- a/utils/setup.php +++ b/utils/setup.php @@ -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; -- 2.39.5