You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by lf...@apache.org on 2021/02/24 15:57:46 UTC

[incubator-datalab] branch DATALAB-2091 updated: [DATALAB-2091]: changed update

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

lfrolov pushed a commit to branch DATALAB-2091
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git


The following commit(s) were added to refs/heads/DATALAB-2091 by this push:
     new 29a61bc  [DATALAB-2091]: changed update
29a61bc is described below

commit 29a61bc65279f3009a64a49c205b73ac8199ff3b
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Wed Feb 24 17:57:34 2021 +0200

    [DATALAB-2091]: changed update
---
 infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py | 7 ++++---
 1 file changed, 4 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 9d537f3..a0d3438 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py
@@ -166,10 +166,11 @@ def ensure_mongo():
         if not exists(datalab.fab.conn,os.environ['ssn_datalab_path'] + 'tmp/mongo_ensured'):
             datalab.fab.conn.sudo('wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -')
             os_version = datalab.fab.conn.sudo('lsb_release -cs').stdout.replace('\n', '')
-            datalab.fab.conn.sudo('echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu '
-                                  '{}/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list; '
-                                  'apt update'.format(os_version))
+            datalab.fab.conn.sudo('echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu {}/mongodb-org/4.4 '
+                                  'multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list'.format(os_version))
             datalab.fab.conn.sudo('ls -lah /etc/apt/sources.list.d/mongodb-org-4.4.list')
+            datalab.fab.conn.sudo('cat /etc/apt/sources.list.d/mongodb-org-4.4.list')
+            manage_pkg('update', 'remote', '')
             manage_pkg('-y install', 'remote', 'mongodb-org')
             datalab.fab.conn.sudo('systemctl enable mongod.service')
             datalab.fab.conn.sudo('touch ' + os.environ['ssn_datalab_path'] + 'tmp/mongo_ensured')


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