X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/b8cf59b1443e4efad7b9b75cee089394f03eaa33..c249fadcc5ce27698d1f11fe5ec4a1c299786b3c:/cookbooks/web/templates/default/statistics.erb?ds=sidebyside diff --git a/cookbooks/web/templates/default/statistics.erb b/cookbooks/web/templates/default/statistics.erb index 87386a23d..4fc94857e 100644 --- a/cookbooks/web/templates/default/statistics.erb +++ b/cookbooks/web/templates/default/statistics.erb @@ -1,10 +1,13 @@ #!/bin/sh +# Abort on error +set -e + # Make sure /usr/local/bin is on the path export PATH=$PATH:/usr/local/bin # Generate new statistics -<%= @directory %>/script/statistics > <%= @directory %>/tmp/data_stats.html +<%= @ruby %> <%= @directory %>/script/statistics > <%= @directory %>/tmp/data_stats.html # Move new statistics into place mv -f <%= @directory %>/tmp/data_stats.html /store/rails/stats