]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/dns/templates/default/dns-update.erb
Add PXE boot support using ipxe netboot.xyz
[chef.git] / cookbooks / dns / templates / default / dns-update.erb
index 93d2e1ee3ed3db3fea101a650451b575c4b4f664..5353d69d42daa35841e7f0c3deb7a516af662250 100755 (executable)
@@ -4,14 +4,15 @@
 
 umask 0002
 
 
 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
 
 
 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
@@ -19,4 +20,6 @@ fi
 
 git pull -q
 
 
 git pull -q
 
-make update
+make --jobs update
+
+lockfile-remove update