Last active
December 11, 2015 02:19
-
-
Save davidsonfellipe/4529914 to your computer and use it in GitHub Desktop.
install mongodb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ! which mongod >/dev/null 2>&1 ; then | |
if which brew >/dev/null 2>&1 ; then | |
echo "==> Installing brew (brew update)..." | |
brew update | |
echo "==> Installing mongodb (brew install mongodb)..." | |
brew install mongodb | |
elif which port >/dev/null 2>&1 ; then | |
echo "==> Installing mongodb (port install mongodb)..." | |
port install mongodb | |
else | |
echo "### You need to install Homebrew or MacPorts. ###" | |
open http://docs.mongodb.org/manual/tutorial/install-mongodb-on-os-x/#installing-from-10gen-builds | |
exit 1 | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment