]> git.openstreetmap.org Git - nominatim.git/blobdiff - utils/setup.php
edited indices an setup file to grant select for table country_osm_grid
[nominatim.git] / utils / setup.php
index 259ddf2df139589b09efbd55ed4d12353b35c922..4925a4e5b0bef4a30d5a859b17d25535fa487be2 100755 (executable)
@@ -596,6 +596,7 @@ if ($aCMDResult['create-search-indices'] || $aCMDResult['all']) {
     $bDidSomething = true;
 
     $sTemplate = file_get_contents(CONST_BasePath.'/sql/indices.src.sql');
     $bDidSomething = true;
 
     $sTemplate = file_get_contents(CONST_BasePath.'/sql/indices.src.sql');
+    $sTemplate = str_replace('{www-user}', CONST_Database_Web_User, $sTemplate);
     $sTemplate = replace_tablespace(
         '{ts:address-index}',
         CONST_Tablespace_Address_Index,
     $sTemplate = replace_tablespace(
         '{ts:address-index}',
         CONST_Tablespace_Address_Index,