]> git.openstreetmap.org Git - chef.git/blob - cookbooks/dns/templates/default/dns-update.erb
nominatim: reinstate fail2ban on restricted_ips.log
[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 PINGDOM_USERNAME=pingdom@openstreetmap.org
9 export PINGDOM_PASSWORD=<%= @passwords["pingdom"] %>
10 export STATUSCAKE_USERNAME=OpenStreetMap
11 export STATUSCAKE_APIKEY=<%= @passwords["statuscake"] %>
12
13 cd /var/lib/dns
14
15 if [ ! -d .git ]
16 then
17   git clone /var/lib/git/dns.git /var/lib/dns
18 fi
19
20 git pull -q
21
22 make update