Skip to content

Commit

Permalink
Exit if MONGODB env variable is not set.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kami committed Dec 1, 2016
1 parent 95469fc commit c616da8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/travis/install-and-run-mongodb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

# Script which installs versions of MongoDB specified using an environment variable

if [ ! "${MONGODB}" ]; then
echo "MONGODB environment variable not set"
exit 2
fi

# Note: MongoDB 2.4 and 2.6 don't work with ramdisk since they don't work with
# small files and require at least 3 GB of space
if [ ${MONGODB} = '2.4.9' ] || [ ${MONGODB} = '2.6.12' ]; then
Expand Down

0 comments on commit c616da8

Please sign in to comment.