diff options
| author | Mike McQuaid | 2013-05-25 14:47:02 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-05-25 14:47:02 +0100 |
| commit | c00510796113fc2f95201bb479d448a303f64c94 (patch) | |
| tree | 96c7a1060e0a3613065ee6757bebf35af009eca0 /Library/Formula | |
| parent | 1395d0a003abdd00725705225e7c7dbf6a3e2257 (diff) | |
| download | homebrew-c00510796113fc2f95201bb479d448a303f64c94.tar.bz2 | |
elasticsearch: move mkpath to post_install.
References #19994.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/elasticsearch.rb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Library/Formula/elasticsearch.rb b/Library/Formula/elasticsearch.rb index 6cd379ea8..be793085c 100644 --- a/Library/Formula/elasticsearch.rb +++ b/Library/Formula/elasticsearch.rb @@ -39,11 +39,6 @@ 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 @@ -73,6 +68,13 @@ class Elasticsearch < Formula end end + def post_install + # Make sure runtime directories exist + (var/"elasticsearch/#{cluster_name}").mkpath + (var/"log/elasticsearch").mkpath + (var/"lib/elasticsearch/plugins").mkpath + end + def caveats; <<-EOS.undent Data: #{var}/elasticsearch/#{cluster_name}/ Logs: #{var}/log/elasticsearch/#{cluster_name}.log |
