From 8f719c71e50ac30e7bd36fadc48e25892f5c23ea Mon Sep 17 00:00:00 2001 From: "Wayne E. Seguin" Date: Wed, 19 Oct 2011 16:02:45 -0400 Subject: [PATCH] Create db path on postinstall. --- mongodb/shell/functions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mongodb/shell/functions b/mongodb/shell/functions index a4c81ca..0bbec8b 100644 --- a/mongodb/shell/functions +++ b/mongodb/shell/functions @@ -8,7 +8,7 @@ mongodb_initialize() service_binary="${active_path}/bin/mongod" service_cli_binary="${active_path}/bin/mongo" service_flags+=( - --dbpath ${service_data_path} + --dbpath ${service_db_path} --pidfilepath ${service_pid_file} ) @@ -54,6 +54,8 @@ mongodb_install() mongodb_postinstall() { + path create ${service_db_path} + if ! path exists "${install_base_path}" then activate_package "${package_name}" "${package_version}" ; fi }