X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/77aadb15b43513c869af62c1d5c50cda35f2634c..3903aeca9d5b355fa9745f7f6e7358d6e1ba5d5d:/cookbooks/dns/templates/default/dns-check.erb diff --git a/cookbooks/dns/templates/default/dns-check.erb b/cookbooks/dns/templates/default/dns-check.erb index 0c88edf42..09f061b67 100755 --- a/cookbooks/dns/templates/default/dns-check.erb +++ b/cookbooks/dns/templates/default/dns-check.erb @@ -5,4 +5,8 @@ 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