From ff22cb2a221da956cd6538d86a0c463c7ca01b86 Mon Sep 17 00:00:00 2001 From: Stefan Verhoeven Date: Sun, 23 Feb 2020 17:43:06 +0100 Subject: [PATCH] Use Python3 extension in template --- template_postgis.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/template_postgis.sh b/template_postgis.sh index 6b3986f..2f19374 100755 --- a/template_postgis.sh +++ b/template_postgis.sh @@ -2,17 +2,15 @@ # # Init script for template postgis # +set -e -POSTGIS_SQL_PATH=`pg_config --sharedir`/contrib/postgis-2.2; createdb -E UTF8 template_postgis; -createlang -d template_postgis plpgsql; psql -d postgres -c "UPDATE pg_database SET datistemplate='true' \ WHERE datname='template_postgis'" psql -d template_postgis -c "CREATE EXTENSION postgis;" psql -d template_postgis -c "CREATE EXTENSION postgis_topology;" psql -d template_postgis -c "GRANT ALL ON geometry_columns TO PUBLIC;" psql -d template_postgis -c "GRANT ALL ON spatial_ref_sys TO PUBLIC;" -psql -c "CREATE EXTENSION plpythonu;" -psql -d template_postgis -c "CREATE EXTENSION plpythonu;" +psql -d template_postgis -c "CREATE EXTENSION plpython3u;" psql -d template_postgis -c "CREATE EXTENSION crankshaft VERSION 'dev';" psql -d template_postgis -c "CREATE EXTENSION plproxy;"