]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/dns/templates/default/dns-check.erb
nominatim: switch server to new location of nominatim
[chef.git] / cookbooks / dns / templates / default / dns-check.erb
index 0c88edf428ca3eaadcb5cd3cf0b01fb72d990bef..09f061b67db9c420872c7cac08093edfe1cd97f8 100755 (executable)
@@ -5,4 +5,8 @@ export STATUSCAKE_USERNAME="OpenStreetMap"
 export STATUSCAKE_APIKEY="<%= @passwords["statuscake"] %>"
 export PATH=/usr/local/bin:$PATH
 
 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