Merge "Fix mongodb.conf corruption during stack.sh"

This commit is contained in:
Jenkins 2015-10-19 20:03:43 +00:00 committed by Gerrit Code Review
commit 4ce4453ca6

View File

@ -202,7 +202,9 @@ function configure_mongodb {
pip_install pymongo
if is_ubuntu; then
install_package mongodb-server
echo "smallfiles = true" | sudo tee --append /etc/mongodb.conf > /dev/null
if ! grep -qF "smallfiles = true" /etc/mongodb.conf; then
echo "smallfiles = true" | sudo tee --append /etc/mongodb.conf > /dev/null
fi
restart_service mongodb
elif is_fedora; then
install_package mongodb