X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/66b5e85845547e6f3c6dba59952217f5882b0271..448fd1b3bde9f976841cfc0b3981425e67361bb6:/script/vagrant/setup/provision.sh diff --git a/script/vagrant/setup/provision.sh b/script/vagrant/setup/provision.sh index e2cacfff3..6d7e51d6a 100644 --- a/script/vagrant/setup/provision.sh +++ b/script/vagrant/setup/provision.sh @@ -53,7 +53,6 @@ sudo -u vagrant psql -d openstreetmap -f db/functions/functions.sql #pushd db/functions #sudo -u vagrant make #sudo -u vagrant psql openstreetmap -c "CREATE OR REPLACE FUNCTION tile_for_point(int4, int4) RETURNS int8 AS '/srv/openstreetmap-website/db/functions/libpgosm.so', 'tile_for_point' LANGUAGE C STRICT" -#sudo -u vagrant psql openstreetmap -c "CREATE OR REPLACE FUNCTION xid_to_int4(xid) RETURNS int4 AS '/srv/openstreetmap-website/db/functions/libpgosm.so', 'xid_to_int4' LANGUAGE C STRICT" #popd @@ -61,6 +60,9 @@ sudo -u vagrant psql -d openstreetmap -f db/functions/functions.sql if [ ! -f config/database.yml ]; then sudo -u vagrant cp config/example.database.yml config/database.yml fi +if [ ! -f config/storage.yml ]; then + cp config/example.storage.yml config/storage.yml +fi touch config/settings.local.yml # migrate the database to the latest version sudo -u vagrant bundle exec rake db:migrate