]> git.openstreetmap.org Git - chef.git/blob - cookbooks/web/templates/default/statistics.erb
Redirect https requests to osm.org to www.osm.org
[chef.git] / cookbooks / web / templates / default / statistics.erb
1 #!/bin/sh
2
3 # Generate new statistics
4 <%= @directory %>/script/statistics > <%= @directory %>/tmp/data_stats.html
5
6 # Move new statistics into place
7 mv -f <%= @directory %>/tmp/data_stats.html /store/rails/stats
8
9 # Mail statistics to Blackadder
10 mail -s "OpenStreetMap Statistics" blackadderajr@gmail.com < /store/rails/stats/data_stats.html