mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-24 05:22:15 +03:00
Updated setup.php
This commit is contained in:
parent
95d2dd74ad
commit
37f0b51dff
@ -77,15 +77,17 @@ if ($aCMDResult['create-db'] || $aCMDResult['all']) {
|
|||||||
$oSetup->createDB();
|
$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']) {
|
if ($aCMDResult['setup-db'] || $aCMDResult['all']) {
|
||||||
$bDidSomething = true;
|
$bDidSomething = true;
|
||||||
$oSetup->setupDB();
|
$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']) {
|
if ($aCMDResult['import-data'] || $aCMDResult['all']) {
|
||||||
$bDidSomething = true;
|
$bDidSomething = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user