]> git.openstreetmap.org Git - chef.git/blob - cookbooks/dns/templates/default/dns-update.erb
Cope when no disk information has been gathered yet
[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
11 cd /var/lib/dns
12
13 if [ ! -d .git ]
14 then
15   git clone /var/lib/git/dns.git /var/lib/dns
16 fi
17
18 git pull -q
19
20 make update