This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DATALAB-2420
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
The following commit(s) were added to refs/heads/DATALAB-2420 by this push:
new de586fe [DATALAB-2420]: changed under what user export is used
de586fe is described below
commit de586fe66e5c14eed48ba1179668a85a5af1db65
Author: leonidfrolov <[email protected]>
AuthorDate: Thu Jun 17 12:00:23 2021 +0300
[DATALAB-2420]: changed under what user export is used
---
infrastructure-provisioning/src/general/lib/os/redhat/common_lib.py | 2 +-
infrastructure-provisioning/src/general/lib/os/redhat/notebook_lib.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git
a/infrastructure-provisioning/src/general/lib/os/redhat/common_lib.py
b/infrastructure-provisioning/src/general/lib/os/redhat/common_lib.py
index 6b432fd..21f9221 100644
--- a/infrastructure-provisioning/src/general/lib/os/redhat/common_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/redhat/common_lib.py
@@ -82,7 +82,7 @@ def ensure_pkg(user, requisites='git vim gcc python-devel
openssl-devel nmap lib
manage_pkg('repolist', 'remote', '')
manage_pkg('-y install', 'remote', 'python3-pip gcc')
datalab.fab.conn.sudo('rm -f epel-release-latest-7.noarch.rpm')
- datalab.fab.conn.sudo('export LC_ALL=C')
+ datalab.fab.conn.run('export LC_ALL=C')
manage_pkg('-y install', 'remote', requisites)
datalab.fab.conn.sudo('touch
/home/{}/.ensure_dir/pkg_upgraded'.format(user))
except:
diff --git
a/infrastructure-provisioning/src/general/lib/os/redhat/notebook_lib.py
b/infrastructure-provisioning/src/general/lib/os/redhat/notebook_lib.py
index c621760..8e9d9b2 100644
--- a/infrastructure-provisioning/src/general/lib/os/redhat/notebook_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/redhat/notebook_lib.py
@@ -320,7 +320,7 @@ def install_os_pkg(requisites):
try:
print("Updating repositories and installing requested tools:
{}".format(requisites))
manage_pkg('update-minimal --security -y --skip-broken', 'remote', '')
- datalab.fab.conn.sudo('export LC_ALL=C')
+ datalab.fab.conn.run('export LC_ALL=C')
for os_pkg in requisites:
name, vers = os_pkg
if vers != '' and vers !='N/A':
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]