Fix mongo download link as convention changed in official repo with > 4.0
This commit is contained in:
7
.github/workflows/install_mongo.sh
vendored
7
.github/workflows/install_mongo.sh
vendored
@@ -2,7 +2,14 @@
|
||||
|
||||
MONGODB=$1
|
||||
|
||||
# Mongo > 4.0 follows different name convention for download links
|
||||
mongo_build=mongodb-linux-x86_64-${MONGODB}
|
||||
|
||||
if [[ "$MONGODB" == *"4."* ]] && [[ ! "$MONGODB" == *"4.0"* ]]; then
|
||||
echo "It's there."
|
||||
mongo_build=mongodb-linux-x86_64-ubuntu2004-v${MONGODB}-latest
|
||||
fi
|
||||
|
||||
wget http://fastdl.mongodb.org/linux/$mongo_build.tgz
|
||||
tar xzf $mongo_build.tgz
|
||||
${PWD}/$mongo_build/bin/mongod --version
|
||||
|
||||
Reference in New Issue
Block a user