From 0c68d69f6fde5d8ac0198977258e0d0010b45a1a Mon Sep 17 00:00:00 2001 From: merspieler Date: Sun, 29 Sep 2019 03:13:50 +0000 Subject: [PATCH] Fixed? Signed-off-by: merspieler --- create-db | 2 -- install | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/create-db b/create-db index aeb26c6..cc4a8d8 100755 --- a/create-db +++ b/create-db @@ -63,8 +63,6 @@ if [ ! -z "$man_user" ]; then fi createdb --encoding=UTF8 --owner=$db_user --template=osm2city_template "$database" -psql -d "$database" -f sql/pgsnapshot_schema_0.6.sql -psql -d "$database" -f sql/pgsnapshot_schema_0.6_bbox.sql if [ ! -f ".databases" ]; then touch .databases diff --git a/install b/install index f0a4fa8..d83b77e 100755 --- a/install +++ b/install @@ -124,7 +124,7 @@ if [ "$skip_sql" != 1 ]; then fi echo "Creating template database..." -sudo -u postgres createdb --encoding=UTF8 osm2city_template && psql --dbname="$database" -c "CREATE EXTENSION postgis;" && psql --dbname="$database" -c "CREATE EXTENSION hstore;" && psql -c "ALTER DATABASE osm2city_template OWNER TO $db_user;" +sudo -u postgres createdb --encoding=UTF8 osm2city_template && psql --dbname="osm2city_template" -c "CREATE EXTENSION postgis;" && psql --dbname="osm2city_template" -c "CREATE EXTENSION hstore;" && psql -d "$database" -f sql/pgsnapshot_schema_0.6.sql && psql -d "$database" -f sql/pgsnapshot_schema_0.6_bbox.sql && psql -c "ALTER DATABASE osm2city_template OWNER TO $db_user;" if [ ! -f general-settings ]; then echo "# This file must be used with "source general-settings" *from bash*" > general-settings