]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/dns/templates/default/dns-update.erb
Drop role and cookbook for the old tile CDN
[chef.git] / cookbooks / dns / templates / default / dns-update.erb
index 8022e45664a2e52f075dabe397a0796f78990b45..5353d69d42daa35841e7f0c3deb7a516af662250 100755 (executable)
@@ -4,7 +4,6 @@
 
 umask 0002
 
 
 umask 0002
 
-export RSYNC_PASSWORD="<%= @passwords["rsync"] %>"
 export GEODNS_SERVERS="<%= @geoservers.join(" ") %>"
 export STATUSCAKE_USERNAME="OpenStreetMap"
 export STATUSCAKE_APIKEY="<%= @passwords["statuscake"] %>"
 export GEODNS_SERVERS="<%= @geoservers.join(" ") %>"
 export STATUSCAKE_USERNAME="OpenStreetMap"
 export STATUSCAKE_APIKEY="<%= @passwords["statuscake"] %>"
@@ -12,6 +11,8 @@ export PATH=/usr/local/bin:$PATH
 
 cd /var/lib/dns
 
 
 cd /var/lib/dns
 
+lockfile-create --use-pid update || exit 1
+
 if [ ! -d .git ]
 then
   git clone /var/lib/git/public/dns.git /var/lib/dns
 if [ ! -d .git ]
 then
   git clone /var/lib/git/public/dns.git /var/lib/dns
@@ -20,3 +21,5 @@ fi
 git pull -q
 
 make --jobs update
 git pull -q
 
 make --jobs update
+
+lockfile-remove update