Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files
elasticsearch: Add better default
`` is bound to loopback interface to prevent errors when
switching networks. See:

Signed-off-by: Adam Vandenberg <>
  • Loading branch information
sartak authored and adamv committed Jun 27, 2012
1 parent dea172d commit c6518a2d01f349af0558a57af8b3fad5e05d8307
Showing with 3 additions and 0 deletions.
  1. +3 −0 Library/Formula/elasticsearch.rb
@@ -28,6 +28,9 @@ def install
# 2. Configure paths
s.gsub! /#\s*path\.data\: [^\n]+/, " #{var}/elasticsearch/"
s.gsub! /#\s*path\.logs\: [^\n]+/, "path.logs: #{var}/log/elasticsearch/"

# 3. Bind to loopback IP for laptops roaming different networks
s.gsub! /#\s*network\.host\: [^\n]+/, ""

inreplace "#{bin}/" do |s|

0 comments on commit c6518a2

Please sign in to comment.