X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/4479ee5c32b8d5c7dc6cef37b4bbaed9402ed4fb..b6a86046121d80e5c5076ef8482e6b13c35ecae2:/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 93d2e1ee3..a16016b56 100755 --- a/cookbooks/dns/templates/default/dns-update.erb +++ b/cookbooks/dns/templates/default/dns-update.erb @@ -4,14 +4,15 @@ 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 +lockfile-create --use-pid update || exit 1 + if [ ! -d .git ] then git clone /var/lib/git/public/dns.git /var/lib/dns @@ -19,4 +20,6 @@ fi git pull -q -make update +make --jobs check update + +lockfile-remove update