From: Sarah Hoffmann Date: Mon, 17 Jul 2017 21:17:26 +0000 (+0200) Subject: vagrant: download country data into correct directory X-Git-Tag: v3.0.1~2^2 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/937bead547ee7a0a12e6429a3813650f54920704 vagrant: download country data into correct directory --- 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