X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/4fc5c2024bf42dd76825164b5d1110a7a602d384..c3238682a8867edfb3c052ca4d2d27b3926ad17a:/utils/setup.php diff --git a/utils/setup.php b/utils/setup.php index e0f74427..713fe561 100644 --- a/utils/setup.php +++ b/utils/setup.php @@ -1,8 +1,8 @@ createDB(); } -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(); } - if ($aCMDResult['import-data'] || $aCMDResult['all']) { $bDidSomething = true; $oSetup->importData($aCMDResult['osm-file']); @@ -128,7 +118,11 @@ if ($aCMDResult['load-data'] || $aCMDResult['all']) { if ($aCMDResult['import-tiger-data']) { $bDidSomething = true; - $oSetup->importTigerData(); + $sTigerPath = getSetting('TIGER_DATA_PATH'); + if (!$sTigerPath) { + $sTigerPath = CONST_DataDir.'/data/tiger'; + } + $oSetup->importTigerData($sTigerPath); } if ($aCMDResult['calculate-postcodes'] || $aCMDResult['all']) {