Skip to content

Commit

Permalink
Download correct crypt_shared version when starting serverless instan…
Browse files Browse the repository at this point in the history
…ce (#459)
  • Loading branch information
alcaeus authored Jul 23, 2024
1 parent 1fa0a27 commit 395efce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .evergreen/serverless/create-instance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ fi

if [ "${SERVERLESS_SKIP_CRYPT:-}" != "OFF" ]; then
# Download binaries and crypt_shared
MONGODB_VERSION=rapid bash ./download-crypt.sh
MONGODB_VERSION=$(echo $SERVERLESS_MONGODB_VERSION | cut -d '.' -f-2) bash ./download-crypt.sh
fi

popd
2 changes: 2 additions & 0 deletions .evergreen/serverless/download-crypt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

MONGODB_VERSION=${MONGODB_VERSION:-latest}

echo "Download crypt_shared for MongoDB ${MONGODB_VERSION}"

SCRIPT_DIR=$(dirname ${BASH_SOURCE[0]})
. $SCRIPT_DIR/../handle-paths.sh

Expand Down

0 comments on commit 395efce

Please sign in to comment.