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

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


The following commit(s) were added to refs/heads/DATALAB-2840 by this push:
     new b6e40e62a [DATALAB-2840]: changed how nodejs is installed
b6e40e62a is described below

commit b6e40e62a2c85ae3664e46dde8f83b0b7a813217
Author: leonidfrolov <[email protected]>
AuthorDate: Mon Jun 6 16:04:47 2022 +0300

    [DATALAB-2840]: changed how nodejs is installed
---
 infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py | 3 +--
 1 file changed, 1 insertion(+), 2 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 44c94fe0e..fd368da0a 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py
@@ -384,8 +384,7 @@ def install_build_dep():
                         maven_version.split('.')[0], maven_version))
             datalab.fab.conn.sudo('bash -c "curl --silent --location 
https://deb.nodesource.com/setup_16.x | bash -"')
             datalab.fab.conn.sudo('curl -o- 
https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash')
-            datalab.fab.conn.sudo('source ~/.bashrc')
-            datalab.fab.conn.sudo('nvm install v16.15.0')
+            datalab.fab.conn.run('source ~/.bashrc && nvm install v16.15.0')
             datalab.fab.conn.sudo('npm config set unsafe-perm=true')
             datalab.fab.conn.sudo('touch 
{}tmp/build_dep_ensured'.format(os.environ['ssn_datalab_path']))
     except Exception as err:


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to