This repository has been archived by the owner. It is now read-only.

elasticsearch: Better network.host #12985

Closed
wants to merge 1 commit into
base: master
from
Jump to file or symbol
Failed to load files and symbols.
+3 −0
Diff settings

Always

Just for now

elasticsearch: Add better default network.host

  • Loading branch information...
sartak committed Jun 23, 2012
commit 551f679ab61a8d2d19ca7ea30927fe7ed40e8e33
@@ -28,6 +28,9 @@ def install
# 2. Configure paths
s.gsub! /#\s*path\.data\: [^\n]+/, "path.data: #{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]+/, "network.host: 127.0.0.1"
end
inreplace "#{bin}/elasticsearch.in.sh" do |s|
ProTip! Use n and p to navigate between commits in a pull request.