diff options
| author | Brian McCarthy <brian.mccarthy@mongodb.com> | 2022-05-11 20:47:42 +0000 |
|---|---|---|
| committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-05-17 13:56:34 +0000 |
| commit | 6f7dae919422dcd7f4892c10ff20cdc721ad00e6 (patch) | |
| tree | ab23d6dc2e2f1525b72bb9eec2f606bed16f216b /buildscripts/package_test/recipes/install_mongodb.rb | |
| parent | a470de123615559ab3ddc244f71e79e6c52c7812 (diff) | |
SERVER-66386 Update AMI images for package testsr5.0.9-rc1r5.0.9
(cherry picked from commit 558e2dfd2cc4d4a7e87b321d1a65c89a23984b17)
Diffstat (limited to 'buildscripts/package_test/recipes/install_mongodb.rb')
| -rw-r--r-- | buildscripts/package_test/recipes/install_mongodb.rb | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/buildscripts/package_test/recipes/install_mongodb.rb b/buildscripts/package_test/recipes/install_mongodb.rb index a13bccbad8d..1e857627f1e 100644 --- a/buildscripts/package_test/recipes/install_mongodb.rb +++ b/buildscripts/package_test/recipes/install_mongodb.rb @@ -51,11 +51,21 @@ if platform_family? 'debian' ENV['DEBIAN_FRONTEND'] = 'noninteractive' package 'openssl' - # the ubuntu 16.04 image does not have some dependencies installed by default + # the ubuntu image does not have some dependencies installed by default # and it is required for the install_compass script - execute 'install dependencies' do - command 'apt-get install -y python libsasl2-modules-gssapi-mit' - live_stream true + if node['platform'] == 'ubuntu' and node['platform_version'] == '20.04' + execute 'install dependencies ubuntu 20.04' do + command 'apt-get install -y python3 libsasl2-modules-gssapi-mit' + live_stream true + end + link '/usr/bin/python' do + to '/usr/bin/python3' + end + else + execute 'install dependencies' do + command 'apt-get install -y python libsasl2-modules-gssapi-mit' + live_stream true + end end # dpkg returns 1 if dependencies are not satisfied, which they will not be |
