Thought I've changed that

Signed-off-by: merspieler <merspieler@airmail.cc>
This commit is contained in:
merspieler 2019-09-29 03:16:52 +00:00
parent 0c68d69f6f
commit d88f339a1d

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 "$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;"
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;"
if [ ! -f general-settings ]; then
echo "# This file must be used with "source general-settings" *from bash*" > general-settings