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 13:35:43 UTC
[incubator-datalab] branch DATALAB-2091 updated: [DATALAB-2091]:
added wrap in bash -c
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 788d6fd [DATALAB-2091]: added wrap in bash -c
788d6fd is described below
commit 788d6fd45fa943c8cc6d02ac92997cdd71b5e569
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Wed Feb 24 15:35:20 2021 +0200
[DATALAB-2091]: added wrap in bash -c
---
infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py | 6 +++---
1 file changed, 3 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 c191f8a..a5cda67 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py
@@ -165,9 +165,9 @@ def ensure_mongo():
try:
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 -')
- datalab.fab.conn.sudo('ver=`lsb_release -cs`; echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu '
- '$ver/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list; '
- 'apt update')
+ datalab.fab.conn.sudo('bash -c "ver=`lsb_release -cs`; echo \"deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu '
+ '$ver/mongodb-org/4.4 multiverse\" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list; '
+ 'apt update"')
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