]> git.openstreetmap.org Git - chef.git/blob - cookbooks/nominatim/templates/default/update_source.erb
Initial work on maintaining an up to date planet for taginfo
[chef.git] / cookbooks / nominatim / templates / default / update_source.erb
1 #!/bin/bash
2
3 # DO NOT EDIT - This file is being maintained by Chef
4
5 cd <%= @source_directory %>
6
7 git submodule update &&
8 ./autogen.sh &&
9 ./configure &&
10 make
11
12 psql -d <%= node[:nominatim][:database][:dbname] %> -c "SELECT version();" >/dev/null 2>&1
13 if [[ "$?" == "0" ]]; then
14   ./utils/setup.php --create-functions --create-partition-functions --enable-diff-updates
15 fi