diff options
| author | Michael J. Choi | 2014-07-07 20:14:57 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2014-07-08 11:09:43 -0700 |
| commit | 3bbd4f189c7283947b7a018f6f579067f627627b (patch) | |
| tree | 38eb35f079ae694afbf58e04fc8a233086bf92f0 /Library/Formula | |
| parent | 081f094fe7f37d3c61db252dbf43cf9419af029e (diff) | |
| download | homebrew-3bbd4f189c7283947b7a018f6f579067f627627b.tar.bz2 | |
elasticsearch: fix 1.2.1 log path parsing
Closes #30728.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/elasticsearch.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Formula/elasticsearch.rb b/Library/Formula/elasticsearch.rb index ad883e90f..1b21b1fa8 100644 --- a/Library/Formula/elasticsearch.rb +++ b/Library/Formula/elasticsearch.rb @@ -46,9 +46,9 @@ class Elasticsearch < Formula s.gsub! /#\s*cluster\.name\: elasticsearch/, "cluster.name: #{cluster_name}" # 2. Configure paths - s.sub! "# path.data: /path/to/data", "path.data: #{var}/elasticsearch/" - s.sub! "# path.logs: /path/to/logs", "path.logs: #{var}/log/elasticsearch/" - s.sub! "# path.plugins: /path/to/plugins", "path.plugins: #{var}/lib/elasticsearch/plugins" + s.sub! /#\s*path\.data: \/path\/to.+$/, "path.data: #{var}/elasticsearch/" + s.sub! /#\s*path\.logs: \/path\/to.+$/, "path.logs: #{var}/log/elasticsearch/" + s.sub! /#\s*path\.plugins: \/path\/to.+$/, "path.plugins: #{var}/lib/elasticsearch/plugins" # 3. Bind to loopback IP for laptops roaming different networks s.gsub! /#\s*network\.host\: [^\n]+/, "network.host: 127.0.0.1" |
