From f1394a2c7983ac3f1823b2a4f39baccf8db489c9 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 7 Oct 2013 15:35:37 +0100 Subject: [PATCH] mongodb: move some post_install back to install. --- Formula/mongodb.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Formula/mongodb.rb b/Formula/mongodb.rb index cf88117399..50bce80213 100644 --- a/Formula/mongodb.rb +++ b/Formula/mongodb.rb @@ -48,13 +48,17 @@ class Mongodb < Formula } exec "#{prefix}/mongod", *ARGV EOS + + etc.install prefix+'mongod.conf' + + (var+'mongodb').mkpath + (var+'log/mongodb').mkpath end def post_install + # TODO: can be removed when bottle is updated. (var+'mongodb').mkpath (var+'log/mongodb').mkpath - etc.mkpath - cp prefix+'mongod.conf', etc+"mongod.conf" unless File.exists? etc+"mongod.conf" end def mongodb_conf; <<-EOS.undent