]> git.openstreetmap.org Git - chef.git/blob - cookbooks/nominatim/templates/default/update_source.erb
missing dependency for ban script and more typos
[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 ./autogen.sh &&
8 ./configure &&
9 make
10
11 psql -d <%= node[:nominatim][:database][:dbname] %> -c "SELECT version();" >/dev/null 2>&1
12 if [[ "$?" == "0" ]]; then
13   ./utils/setup.php --create-functions --create-partition-functions --enable-diff-updates
14 fi