]> git.openstreetmap.org Git - nominatim.git/commitdiff
update dependencies in vagrant provision file
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 6 Feb 2016 17:49:12 +0000 (18:49 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 6 Feb 2016 17:49:12 +0000 (18:49 +0100)
also automatically checkout if Nominatim directory does not exist

vagrant-provision.sh

index 3fae5b68b87ad02b2f15d77c9c866ec289852189..1a7702263ea4bb5a9cc32b59e26b3dd5aee5db6f 100755 (executable)
@@ -29,7 +29,7 @@ USERNAME=vagrant
 
 sudo apt-get update -qq
 sudo apt-get upgrade -y
-sudo apt-get install -y build-essential libxml2-dev libgeos-dev libpq-dev libbz2-dev \
+sudo apt-get install -y build-essential libgeos-dev libpq-dev libbz2-dev \
                         libtool automake libproj-dev libboost-dev  libboost-system-dev \
                         libboost-filesystem-dev libboost-thread-dev libexpat-dev
 sudo apt-get autoremove -y
@@ -73,18 +73,19 @@ echo "date.timezone = 'Etc/UTC'" | sudo tee /etc/php5/cli/conf.d/99-timezone.ini
 ###
 ### Nominatim
 ###
-sudo apt-get install -y libprotobuf-c0-dev protobuf-c-compiler \
-                        libgeos-c1 libgeos++-dev \
-                        lua5.2 liblua5.2-dev
-
-# git clone --recursive https://github.com/twain47/Nominatim.git
-
+sudo apt-get install -y libgeos-c1 libgeos++-dev libxml2-dev
 
 # now ideally login as $USERNAME and continue
 su $USERNAME -l
-cd /home/vagrant/Nominatim
+cd /home/vagrant
+
+if [ ! -d "Nominatim" ]; then
+  sudo apt-get install -y git
+  git clone --recursive https://github.com/twain47/Nominatim.git
+fi
+
+cd Nominatim
 
-# cd ~/Nominatim
 ./autogen.sh
 ./configure
 make