Permalink
Browse files

elasticsearh: fix audit warning

  • Loading branch information...
1 parent 579dedc commit 941c01431a8a4a2ab9aca4d24ffb489c1c15547a @adamv adamv committed with klausmeyer Jan 4, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 Library/Formula/elasticsearch.rb
@@ -31,7 +31,7 @@ def install
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 @@ def install
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

0 comments on commit 941c014

Please sign in to comment.