X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/a73a91f6e5b506d8db04fb1c1e82840512a7dcde..0eb2a2b70464e53cd52edcee3b2fa96ac8bc416b:/cookbooks/web/templates/default/statistics.erb diff --git a/cookbooks/web/templates/default/statistics.erb b/cookbooks/web/templates/default/statistics.erb index 4fc94857e..db1fd40ed 100644 --- a/cookbooks/web/templates/default/statistics.erb +++ b/cookbooks/web/templates/default/statistics.erb @@ -7,10 +7,10 @@ set -e export PATH=$PATH:/usr/local/bin # Generate new statistics -<%= @ruby %> <%= @directory %>/script/statistics > <%= @directory %>/tmp/data_stats.html +<%= @ruby %> -W0 <%= @directory %>/script/statistics > <%= @directory %>/tmp/data_stats.html # Move new statistics into place -mv -f <%= @directory %>/tmp/data_stats.html /store/rails/stats +rsync --quiet <%= @directory %>/tmp/data_stats.html planet.openstreetmap.org::statistics # Mail statistics to Blackadder mail -s "OpenStreetMap Statistics" blackadderajr@gmail.com < /store/rails/stats/data_stats.html