Skip to content

Commit

Permalink
Create db path on postinstall.
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Oct 19, 2011
1 parent a4681e5 commit 8f719c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mongodb/shell/functions
Expand Up @@ -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}
)

Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 8f719c7

Please sign in to comment.