elasticsearch: create required folders

Closes Homebrew/homebrew#19994.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Rob Aldred 2013-05-22 14:52:17 +01:00 committed by Adam Vandenberg
parent 13878bc500
commit ec20788eab

View file

@ -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