]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/dns/templates/default/dns-update.erb
imagery: add OS OpenMap Local 2022 Oct
[chef.git] / cookbooks / dns / templates / default / dns-update.erb
index 162e7875ef78aa5714b994ac1980525a0a9514dc..a16016b56887284449c23a01089ca1ddf672ca28 100755 (executable)
@@ -4,19 +4,22 @@
 
 umask 0002
 
-export RSYNC_PASSWORD=<%= @passwords["rsync"] %>
-export PINGDOM_USERNAME=pingdom@openstreetmap.org
-export PINGDOM_PASSWORD=<%= @passwords["pingdom"] %>
-export STATUSCAKE_USERNAME=OpenStreetMap
-export STATUSCAKE_APIKEY=<%= @passwords["statuscake"] %>
+export GEODNS_SERVERS="<%= @geoservers.join(" ") %>"
+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/dns.git /var/lib/dns
+  git clone /var/lib/git/public/dns.git /var/lib/dns
 fi
 
 git pull -q
 
-make update
+make --jobs check update
+
+lockfile-remove update