]> git.openstreetmap.org Git - chef.git/blob - cookbooks/dns/templates/default/dns-update.erb
Make sure dnscontrol is on the path in DNS update scripts
[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