]> git.openstreetmap.org Git - rails.git/blobdiff - script/vagrant/setup/provision.sh
Remove tile_for_point SQL functions
[rails.git] / script / vagrant / setup / provision.sh
index bfe12a3c6f5eb96de36fff6dfd8fbcf5797fc2c0..e10e144a8bcd8fd1206e89e186c4e5a6e05ec908 100644 (file)
@@ -38,21 +38,6 @@ if [ "$db_user_exists" != "1" ]; then
     sudo -u vagrant createdb -E UTF-8 -O vagrant osm_test
 fi
 
-
-# install PostgreSQL functions
-sudo -u vagrant psql -d openstreetmap -f db/functions/functions.sql
-################################################################################
-# *IF* you want a vagrant image which supports replication (or perhaps you're
-# using this script to provision some other server and want replication), then
-# uncomment the following lines (until popd) and comment out the one above
-# (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"
-#popd
-
-
 # set up sample configs
 if [ ! -f config/database.yml ]; then
     sudo -u vagrant cp config/example.database.yml config/database.yml