Revert "Thought I've changed that"

This reverts commit d88f339a1d.
This commit is contained in:
fly 2019-12-03 18:26:15 +00:00
parent 537addac86
commit 1e3f3ae331

View file

@ -124,7 +124,7 @@ if [ "$skip_sql" != 1 ]; then
fi
echo "Creating template database..."
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 osm2city_template -f sql/pgsnapshot_schema_0.6.sql && psql -d osm2city_template -f sql/pgsnapshot_schema_0.6_bbox.sql && 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