Fixed?
Signed-off-by: merspieler <merspieler@airmail.cc>
This commit is contained in:
parent
3398143f9b
commit
0c68d69f6f
2 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
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="$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
|
||||
|
|
Loading…
Reference in a new issue