X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/65e6abb07c5af84f4ab23c76321dc202d3ce5947..3903aeca9d5b355fa9745f7f6e7358d6e1ba5d5d:/cookbooks/dns/templates/default/dns-update.erb?ds=sidebyside diff --git a/cookbooks/dns/templates/default/dns-update.erb b/cookbooks/dns/templates/default/dns-update.erb index 401c5c74f..5353d69d4 100755 --- a/cookbooks/dns/templates/default/dns-update.erb +++ b/cookbooks/dns/templates/default/dns-update.erb @@ -4,15 +4,15 @@ umask 0002 -export RSYNC_PASSWORD="<%= @passwords["rsync"] %>" export GEODNS_SERVERS="<%= @geoservers.join(" ") %>" -export PINGDOM_USERNAME="pingdom@openstreetmap.org" -export PINGDOM_PASSWORD="<%= @passwords["pingdom"] %>" export STATUSCAKE_USERNAME="OpenStreetMap" export STATUSCAKE_APIKEY="<%= @passwords["statuscake"] %>" +export PATH=/usr/local/bin:$PATH cd /var/lib/dns +lockfile-create --use-pid update || exit 1 + if [ ! -d .git ] then git clone /var/lib/git/public/dns.git /var/lib/dns @@ -21,3 +21,5 @@ fi git pull -q make --jobs update + +lockfile-remove update