mongodb: create var directories in post_install.

This commit is contained in:
Mike McQuaid 2013-09-05 15:20:44 +01:00
parent 030793c988
commit fdce18e719

View file

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