]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/templates/default/statistics.erb
Merge remote-tracking branch 'github/pull/514'
[chef.git] / cookbooks / web / templates / default / statistics.erb
index a42357ba8e2f3ac4203ad14faaac4b15819c9f9c..30a23a7ac992698361991becacea9d482343183b 100644 (file)
@@ -10,7 +10,7 @@ export PATH=$PATH:/usr/local/bin
 <%= @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
+mail -s "OpenStreetMap Statistics" blackadderajr@gmail.com < <%= @directory %>/tmp/data_stats.html