You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by my...@apache.org on 2020/06/25 07:52:39 UTC

[incubator-dlab] 01/01: [DLAB-1893] - MongoDB version updated to 4.2

This is an automated email from the ASF dual-hosted git repository.

mykolabodnar pushed a commit to branch DLAB-1893
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git

commit f7a70dae0d5e737a9e30c2e3451251eb9820b9ac
Author: bodnarmykola <bo...@gmail.com>
AuthorDate: Thu Jun 25 10:52:04 2020 +0300

    [DLAB-1893] - MongoDB version updated to 4.2
---
 infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py b/infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py
index f4cda59..a31fc44 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py
@@ -161,9 +161,11 @@ def ensure_supervisor():
 def ensure_mongo():
     try:
         if not exists(os.environ['ssn_dlab_path'] + 'tmp/mongo_ensured'):
-            sudo('apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927')
-            sudo('ver=`lsb_release -cs`; echo "deb http://repo.mongodb.org/apt/ubuntu $ver/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list; apt-get update')
-            manage_pkg('-y --allow-unauthenticated install', 'remote', 'mongodb-org')
+            sudo('wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | apt-key add -')
+            sudo('ver=`lsb_release -cs`; echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu '
+                 '$ver/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list; '
+                 'apt-get update')
+            manage_pkg('-y install', 'remote', 'mongodb-org')
             sudo('systemctl enable mongod.service')
             sudo('touch ' + os.environ['ssn_dlab_path'] + 'tmp/mongo_ensured')
     except Exception as err:


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org