]> git.openstreetmap.org Git - chef.git/blob - cookbooks/dns/templates/default/dns-update.erb
nominatim: also download us postcode data
[chef.git] / cookbooks / dns / templates / default / dns-update.erb
1 #!/bin/sh
2
3 # DO NOT EDIT - This file is being maintained by Chef
4
5 umask 0002
6
7 export GEODNS_SERVERS="<%= @geoservers.join(" ") %>"
8 export STATUSCAKE_USERNAME="OpenStreetMap"
9 export STATUSCAKE_APIKEY="<%= @passwords["statuscake"] %>"
10 export PATH=/usr/local/bin:$PATH
11
12 cd /var/lib/dns
13
14 lockfile-create --use-pid update || exit 1
15
16 if [ ! -d .git ]
17 then
18   git clone /var/lib/git/public/dns.git /var/lib/dns
19 fi
20
21 git pull -q
22
23 make --jobs update
24
25 lockfile-remove update