X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/55c8e16ebbefa2bb557b49c78275ff61cf6ac703..fa63c845987967418edaff22b75958916b19f19a:/cookbooks/dns/templates/default/dns-update.erb diff --git a/cookbooks/dns/templates/default/dns-update.erb b/cookbooks/dns/templates/default/dns-update.erb index 8022e4566..5353d69d4 100755 --- a/cookbooks/dns/templates/default/dns-update.erb +++ b/cookbooks/dns/templates/default/dns-update.erb @@ -4,7 +4,6 @@ umask 0002 -export RSYNC_PASSWORD="<%= @passwords["rsync"] %>" 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 +lockfile-create --use-pid update || exit 1 + 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 + +lockfile-remove update