From ec20788eabd2a33486ee16e2da7d4a218d213470 Mon Sep 17 00:00:00 2001 From: Rob Aldred Date: Wed, 22 May 2013 14:52:17 +0100 Subject: [PATCH] elasticsearch: create required folders Closes Homebrew/homebrew#19994. Signed-off-by: Adam Vandenberg --- Formula/elasticsearch.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Formula/elasticsearch.rb b/Formula/elasticsearch.rb index af7124efb67..6cd379ea81a 100644 --- a/Formula/elasticsearch.rb +++ b/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