aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-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