]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/recipes/statistics.rb
disable db replication between pummelzacken and poldi
[chef.git] / cookbooks / web / recipes / statistics.rb
index c7bf9e81a5d5d85b0a1e08d2536581dc6ad9ec96..1be580c1e42b2047358ffecd85360441de02e841 100644 (file)
@@ -19,6 +19,7 @@
 
 include_recipe "web::base"
 
+ruby = "ruby#{node[:passenger][:ruby_version]}"
 rails_directory = "#{node[:web][:base_directory]}/rails"
 
 template "/usr/local/bin/statistics" do
@@ -26,7 +27,7 @@ template "/usr/local/bin/statistics" do
   owner "root"
   group "root"
   mode 0755
-  variables :directory => rails_directory
+  variables :ruby => ruby, :directory => rails_directory
 end
 
 template "/etc/cron.d/statistics" do