aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2013-09-05 15:20:44 +0100
committerMike McQuaid2013-09-05 15:20:54 +0100
commit12e0a06742feefe46bd72e8bbb2771e824a133aa (patch)
tree44de3bea7b326026f7f8b0112ffbb128b6a8a5a7 /Library/Formula
parentfd03aa527d1a4a44f202a9841b6b4e05ee6065b6 (diff)
downloadhomebrew-12e0a06742feefe46bd72e8bbb2771e824a133aa.tar.bz2
mongodb: create var directories in post_install.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mongodb.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Formula/mongodb.rb b/Library/Formula/mongodb.rb
index 8fd362a63..8efc0b9a0 100644
--- a/Library/Formula/mongodb.rb
+++ b/Library/Formula/mongodb.rb
@@ -33,9 +33,6 @@ class Mongodb < Formula
system 'scons', 'install', *args
- (var+'mongodb').mkpath
- (var+'log/mongodb').mkpath
-
(prefix+'mongod.conf').write mongodb_conf
mv bin/'mongod', prefix
@@ -49,6 +46,8 @@ class Mongodb < Formula
end
def post_install
+ (var+'mongodb').mkpath
+ (var+'log/mongodb').mkpath
cp prefix+'mongod.conf', etc unless File.exists? etc+"mongod.conf"
end