From 937bead547ee7a0a12e6429a3813650f54920704 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Mon, 17 Jul 2017 23:17:26 +0200 Subject: [PATCH] vagrant: download country data into correct directory --- VAGRANT.md | 1 - vagrant/Install-on-Centos-7.sh | 5 +++-- vagrant/Install-on-Ubuntu-16.sh | 5 +++-- vagrant/install-on-travis-ci.sh | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/VAGRANT.md b/VAGRANT.md index 7a891f1c..9ea1ec66 100644 --- a/VAGRANT.md +++ b/VAGRANT.md @@ -47,7 +47,6 @@ is. # inside the virtual machine: mkdir data cd build - wget -O /home/vagrant/Nominatim/data/country_osm_grid.sql.gz http://www.nominatim.org/data/country_grid.sql.gz wget --no-verbose --output-document=../data/monaco.osm.pbf http://download.geofabrik.de/europe/monaco-latest.osm.pbf ./utils/setup.php --osm-file ../data/monaco.osm.pbf --osm2pgsql-cache 1000 --all 2>&1 | tee monaco.$$.log ``` diff --git a/vagrant/Install-on-Centos-7.sh b/vagrant/Install-on-Centos-7.sh index 04b2f041..36d3ea4a 100755 --- a/vagrant/Install-on-Centos-7.sh +++ b/vagrant/Install-on-Centos-7.sh @@ -145,10 +145,10 @@ if [ "x$1" == "xyes" ]; then #DOCS: cd $USERHOME git clone --recursive git://github.com/openstreetmap/Nominatim.git -#DOCS: cd Nominatim + cd Nominatim else #DOCS: - cd $USERHOME #DOCS: + cd $USERHOME/Nominatim #DOCS: fi #DOCS: # When installing the latest source from github, you also need to @@ -161,6 +161,7 @@ fi #DOCS: # The code must be built in a separate directory. Create this directory, # then configure and build Nominatim in there: + cd $USERHOME #DOCS: mkdir build cd build cmake $USERHOME/Nominatim diff --git a/vagrant/Install-on-Ubuntu-16.sh b/vagrant/Install-on-Ubuntu-16.sh index 14ee1682..28e38be9 100755 --- a/vagrant/Install-on-Ubuntu-16.sh +++ b/vagrant/Install-on-Ubuntu-16.sh @@ -132,10 +132,10 @@ if [ "x$1" == "xyes" ]; then #DOCS: cd $USERHOME git clone --recursive git://github.com/openstreetmap/Nominatim.git -#DOCS: cd Nominatim + cd Nominatim else #DOCS: - cd $USERHOME #DOCS: + cd $USERHOME/Nominatim #DOCS: fi #DOCS: # When installing the latest source from github, you also need to @@ -148,6 +148,7 @@ fi #DOCS: # The code must be built in a separate directory. Create this directory, # then configure and build Nominatim in there: + cd $USERHOME #DOCS: mkdir build cd build cmake $USERHOME/Nominatim diff --git a/vagrant/install-on-travis-ci.sh b/vagrant/install-on-travis-ci.sh index ec0a92da..98357185 100755 --- a/vagrant/install-on-travis-ci.sh +++ b/vagrant/install-on-travis-ci.sh @@ -45,7 +45,7 @@ EOFAPACHECONF sudo a2enconf nominatim sudo service apache2 restart -wget -O data/country_osm_grid.sql.gz http://www.nominatim.org/data/country_grid.sql.gz +wget -O $TRAVIS_BUILD_DIR/data/country_osm_grid.sql.gz http://www.nominatim.org/data/country_grid.sql.gz mkdir build cd build