X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/4ad7e0b2d223531a863c7a6d24d78b37cae6aa73..bdd6d4fbb325191ae5d0a836460949b7a10908a1:/cookbooks/dns/templates/default/dns-check.erb?ds=inline diff --git a/cookbooks/dns/templates/default/dns-check.erb b/cookbooks/dns/templates/default/dns-check.erb index 60052a6ee..09f061b67 100755 --- a/cookbooks/dns/templates/default/dns-check.erb +++ b/cookbooks/dns/templates/default/dns-check.erb @@ -1,8 +1,12 @@ #!/bin/sh -export RSYNC_PASSWORD="<%= @passwords["rsync"] %>" export GEODNS_SERVERS="<%= @geoservers.join(" ") %>" 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