X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/77aadb15b43513c869af62c1d5c50cda35f2634c..7dea747820c21c7d45070bff703d58534aada3ba:/cookbooks/dns/templates/default/dns-update.erb?ds=sidebyside diff --git a/cookbooks/dns/templates/default/dns-update.erb b/cookbooks/dns/templates/default/dns-update.erb index 4da924be0..5353d69d4 100755 --- a/cookbooks/dns/templates/default/dns-update.erb +++ b/cookbooks/dns/templates/default/dns-update.erb @@ -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 @@ -19,3 +21,5 @@ fi git pull -q make --jobs update + +lockfile-remove update