X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/354487d7f475c0aecec484d077359f7ea44d4033..b133f2bc4cd5e467ff6ef10124416b1307cfdb62:/utils/setup.php?ds=sidebyside 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']) {