X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/1c848471a16f9d1ee1fc8a327af110447ea1ef4c..52e464a8e1bd7572fb865d12f1617666db15b072:/cookbooks/web/templates/default/statistics.erb?ds=inline diff --git a/cookbooks/web/templates/default/statistics.erb b/cookbooks/web/templates/default/statistics.erb index 175f0a9e8..ccfe956cc 100644 --- a/cookbooks/web/templates/default/statistics.erb +++ b/cookbooks/web/templates/default/statistics.erb @@ -1,7 +1,10 @@ #!/bin/sh +# 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