]> git.openstreetmap.org Git - chef.git/blob - cookbooks/dns/templates/default/dns-update.erb
8022e45664a2e52f075dabe397a0796f78990b45
[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 RSYNC_PASSWORD="<%= @passwords["rsync"] %>"
8 export GEODNS_SERVERS="<%= @geoservers.join(" ") %>"
9 export STATUSCAKE_USERNAME="OpenStreetMap"
10 export STATUSCAKE_APIKEY="<%= @passwords["statuscake"] %>"
11 export PATH=/usr/local/bin:$PATH
12
13 cd /var/lib/dns
14
15 if [ ! -d .git ]
16 then
17   git clone /var/lib/git/public/dns.git /var/lib/dns
18 fi
19
20 git pull -q
21
22 make --jobs update