diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/elasticsearch.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/elasticsearch.rb b/Library/Formula/elasticsearch.rb index 5d908514c..66be6e5d1 100644 --- a/Library/Formula/elasticsearch.rb +++ b/Library/Formula/elasticsearch.rb @@ -30,12 +30,12 @@ class Elasticsearch < Formula s.gsub! /#\s*path\.logs\: [^\n]+/, "path.logs: #{var}/log/elasticsearch/" end - inreplace "#{prefix}/bin/elasticsearch.in.sh" do |s| + inreplace "#{bin}/elasticsearch.in.sh" do |s| # Replace CLASSPATH paths to use libexec instead of lib s.gsub! /ES_HOME\/lib\//, "ES_HOME/libexec/" end - inreplace "#{prefix}/bin/elasticsearch" do |s| + inreplace "#{bin}/elasticsearch" do |s| # Set ES_HOME to prefix value s.gsub! /^ES_HOME=.*$/, "ES_HOME=#{prefix}" end |
