X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/96d3cb61c80d5fd0219497f74f908ca867ba5dce..7a47abe94728f688d6580b3497a8e1256ed28d72:/utils/setup.php diff --git a/utils/setup.php b/utils/setup.php index 01aa8062..ff890af9 100755 --- a/utils/setup.php +++ b/utils/setup.php @@ -125,7 +125,7 @@ pgsqlRunScriptFile(CONST_Path_Postgresql_Postgis.'/postgis.sql'); $sVersionString = $oDB->getOne('select postgis_full_version()'); - preg_match('#POSTGIS="([0-9]+)[.]([0-9]+)[.]([0-9]+) r([0-9]+)"#', $sVersionString, $aMatches); + preg_match('#POSTGIS="([0-9]+)[.]([0-9]+)[.]([0-9]+)( r([0-9]+))?"#', $sVersionString, $aMatches); if (CONST_Postgis_Version != $aMatches[1].'.'.$aMatches[2]) { echo "ERROR: PostGIS version is not correct. Expected ".CONST_Postgis_Version." found ".$aMatches[1].'.'.$aMatches[2]."\n";