aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorRob Aldred2013-05-22 14:52:17 +0100
committerAdam Vandenberg2013-05-22 07:57:01 -0700
commit474196d16610da09a77135dd64eff80d66a53d16 (patch)
tree5003da54b75f329aa8d064432fcee614c947d97c /Library/Formula
parentc5fb7e4c6fca0742b093927e9c64d1a462fd4554 (diff)
downloadhomebrew-474196d16610da09a77135dd64eff80d66a53d16.tar.bz2
elasticsearch: create required folders
Closes #19994. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/elasticsearch.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/elasticsearch.rb b/Library/Formula/elasticsearch.rb
index af7124efb..6cd379ea8 100644
--- a/Library/Formula/elasticsearch.rb
+++ b/Library/Formula/elasticsearch.rb
@@ -39,6 +39,11 @@ class Elasticsearch < Formula
rm_rf "#{prefix}/target/"
end
+ # Make sure runtime directories exist
+ (var/"elasticsearch/#{cluster_name}").mkpath
+ (var/"log/elasticsearch").mkpath
+ (var/"lib/elasticsearch/plugins").mkpath
+
# Set up ElasticSearch for local development:
inreplace "#{prefix}/config/elasticsearch.yml" do |s|
# 1. Give the cluster a unique name