From: Brian Quinion Date: Wed, 7 Oct 2015 13:44:59 +0000 (+0100) Subject: Allow for postgis being in the default template - not an error if it already is installed X-Git-Tag: v.2.5.0~20 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/347f8e57c7c62de865b1bb35e72de7e3b2550d48 Allow for postgis being in the default template - not an error if it already is installed --- diff --git a/osm2pgsql b/osm2pgsql index 8179cdb6..55b6b430 160000 --- a/osm2pgsql +++ b/osm2pgsql @@ -1 +1 @@ -Subproject commit 8179cdb67e70d7fb5605ab6ddedfd0bd3347db47 +Subproject commit 55b6b4302ca0443ba78d9c47cddfd8fc7731be4d diff --git a/utils/setup.php b/utils/setup.php index 90374e74..eff7b71b 100755 --- a/utils/setup.php +++ b/utils/setup.php @@ -134,7 +134,7 @@ pgsqlRunScriptFile(CONST_Path_Postgresql_Postgis.'/postgis.sql'); pgsqlRunScriptFile(CONST_Path_Postgresql_Postgis.'/spatial_ref_sys.sql'); } else { - pgsqlRunScript('CREATE EXTENSION postgis'); + pgsqlRunScript('CREATE EXTENSION IF NOT EXISTS postgis'); } if ($fPostgisVersion < 2.1) { // Function was renamed in 2.1 and throws an annoying deprecation warning