]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/dns/templates/default/dns-update.erb
Update snap-03 NIC interface names
[chef.git] / cookbooks / dns / templates / default / dns-update.erb
index 73b0c959f8c4ea0192da2c903b57669430d347fb..a16016b56887284449c23a01089ca1ddf672ca28 100755 (executable)
@@ -4,13 +4,15 @@
 
 umask 0002
 
-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
 
 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
@@ -18,4 +20,6 @@ fi
 
 git pull -q
 
-make --jobs update
+make --jobs check update
+
+lockfile-remove update