Do not redownload mongodb if we have it already
Makes running this on localhost annoying :)
@@ -231,6 +231,7 @@ download_and_extract ()
MONGODB_DOWNLOAD_URL=$1
EXTRACT=$2
+ if ! test -d mongodb -a -x mongodb/bin/mongod; then
curl --retry 5 $MONGODB_DOWNLOAD_URL --silent --max-time 120 --fail --output mongodb-binaries.tgz
$EXTRACT mongodb-binaries.tgz
@@ -239,5 +240,6 @@ download_and_extract ()
mv mongodb* mongodb
chmod -R +x mongodb
find . -name vcredist_x64.exe -exec {} /install /quiet \;
+ fi
./mongodb/bin/mongod --version
}
