parent
537addac86
commit
1e3f3ae331
1 changed files with 1 additions and 1 deletions
2
install
2
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="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
|
||||
|
|
Loading…
Reference in a new issue