aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2013-01-04 09:28:57 -0800
committerAdam Vandenberg2013-01-04 09:28:57 -0800
commita00c97caa2d64ce50999e320a1c96c7749c4343d (patch)
treed360b337caeee50a66a9f1ce805f0dea6f3ac526 /Library
parent6ec84a7f8153ab755bd523af9ecffb607f7a265a (diff)
downloadhomebrew-a00c97caa2d64ce50999e320a1c96c7749c4343d.tar.bz2
elasticsearh: fix audit warning
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/elasticsearch.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/elasticsearch.rb b/Library/Formula/elasticsearch.rb
index 625ca0ff0..200415e76 100644
--- a/Library/Formula/elasticsearch.rb
+++ b/Library/Formula/elasticsearch.rb
@@ -31,7 +31,7 @@ class Elasticsearch < Formula
prefix.install Dir['*']
# Remove unnecessary files
- rm_f Dir["#{prefix}/lib/sigar/*"]
+ rm_f Dir["#{lib}/sigar/*"]
if build.head?
rm_rf "#{prefix}/pom.xml"
rm_rf "#{prefix}/src/"
@@ -61,7 +61,7 @@ class Elasticsearch < Formula
inreplace "#{bin}/plugin" do |s|
# Add the proper ES_CLASSPATH configuration
- s.sub! /SCRIPT="\$0"/, %Q|SCRIPT="$0"\nES_CLASSPATH=#{prefix}/libexec|
+ s.sub! /SCRIPT="\$0"/, %Q|SCRIPT="$0"\nES_CLASSPATH=#{libexec}|
# Replace paths to use libexec instead of lib
s.gsub! /\$ES_HOME\/lib\//, "$ES_CLASSPATH/"
end