]> git.openstreetmap.org Git - nominatim.git/commitdiff
make path to wikipedia files configurable
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 28 Dec 2016 22:38:17 +0000 (23:38 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 28 Dec 2016 22:38:48 +0000 (23:38 +0100)
settings/defaults.php
utils/setup.php

index a953e460f1d81a7651cedd606d5d238e3613822c..e34f4db04200a96549569c91c5bda4587b1ef5a5 100644 (file)
@@ -42,6 +42,7 @@ if (isset($_GET['debug']) && $_GET['debug']) @define('CONST_Debug', true);
 @define('CONST_Osm2pgsql_Binary', CONST_InstallPath.'/osm2pgsql/osm2pgsql');
 @define('CONST_Osmosis_Binary', '/usr/bin/osmosis');
 @define('CONST_Tiger_Data_Path', CONST_BasePath.'/data/tiger');
+@define('CONST_Wikipedia_Data_Path', CONST_BasePath.'/data');
 
 // osm2pgsql settings
 @define('CONST_Osm2pgsql_Flatnode_File', null);
index 0621658711569103a49b0a64a977dc7d5c0b4b00..e4e916746c9247bf55176587255cbe8383d5d9a3 100755 (executable)
@@ -292,8 +292,8 @@ if ($aCMDResult['create-partition-functions'] || $aCMDResult['all']) {
 
 if ($aCMDResult['import-wikipedia-articles'] || $aCMDResult['all']) {
     $bDidSomething = true;
-    $sWikiArticlesFile = CONST_BasePath.'/data/wikipedia_article.sql.bin';
-    $sWikiRedirectsFile = CONST_BasePath.'/data/wikipedia_redirect.sql.bin';
+    $sWikiArticlesFile = CONST_Wikipedia_Data_Path.'/wikipedia_article.sql.bin';
+    $sWikiRedirectsFile = CONST_Wikipedia_Data_Path.'/wikipedia_redirect.sql.bin';
     if (file_exists($sWikiArticlesFile)) {
         echo "Importing wikipedia articles...";
         pgsqlRunDropAndRestore($sWikiArticlesFile);