]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/definitions/rails_port.rb
Add /usr/local/bin to PATH when creating statistics for svgo
[chef.git] / cookbooks / web / definitions / rails_port.rb
index 31467a6ed3a928a18693ca3ad3a9b1da1c786423..49d989ff3b90669e495c3983b4789b423b993202 100644 (file)
@@ -184,6 +184,10 @@ define :rails_port, :action => [:create, :enable] do
       line.gsub!(/^( *)#log_path:.*$/, "\\1log_path: \"#{params[:log_path]}\"")
     end
 
+    if params[:logstash_path]
+      line.gsub!(/^( *)#logstash_path:.*$/, "\\1logstash_path: \"#{params[:logstash_path]}\"")
+    end
+
     if params[:memcache_servers]
       line.gsub!(/^( *)#memcache_servers:.*$/, "\\1memcache_servers: [ \"#{params[:memcache_servers].join("\", \"")}\" ]")
     end