]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/dns/templates/default/dns-update.erb
Alert for RAID batteries that have been recharging for too long
[chef.git] / cookbooks / dns / templates / default / dns-update.erb
index 4da924be048fcceec3208e5a1a137f33eb95c474..a16016b56887284449c23a01089ca1ddf672ca28 100755 (executable)
@@ -11,6 +11,8 @@ 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