elasticsearh: fix audit warning
This commit is contained in:
parent
7dc348cc40
commit
d855233f83
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue