X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/065fa2899bad0780e1a529086c95420f793d0416..21f63bf93d90219a836166bbf0883755e4248989:/cookbooks/dns/templates/default/dns-check.erb?ds=sidebyside diff --git a/cookbooks/dns/templates/default/dns-check.erb b/cookbooks/dns/templates/default/dns-check.erb index df51c7c5c..09f061b67 100755 --- a/cookbooks/dns/templates/default/dns-check.erb +++ b/cookbooks/dns/templates/default/dns-check.erb @@ -1,10 +1,12 @@ #!/bin/sh -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 -make --quiet --jobs --directory=/var/lib/dns update > /dev/null +lockfile-create --use-pid /var/lib/dns/update || exit 1 + +make --quiet --jobs --directory=/var/lib/dns update_primary > /dev/null + +lockfile-remove /var/lib/dns/update