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

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


The following commit(s) were added to refs/heads/DLAB-515 by this push:
     new 010f6f8  [DLAB-515]- Rstudio fixed
010f6f8 is described below

commit 010f6f816a771ebee7e4b32de0348421732bd89c
Author: bodnarmykola <bodnarmyk...@gmail.com>
AuthorDate: Thu May 28 20:41:05 2020 +0300

    [DLAB-515]- Rstudio fixed
---
 infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py 
b/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
index 417930f..0daca32 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
@@ -130,7 +130,7 @@ def install_rstudio(os_user, local_spark_path, 
rstudio_pass, rstudio_version):
                 'sed -i \'/\[Service\]/a Environment=\"HTTPS_PROXY={}\"\'  
/etc/systemd/system/rstudio-server.service'.format(
                     https_proxy))
             java_home = run("update-alternatives --query java | grep -o 
\'/.*/java-8.*/jre\'").splitlines()[0]
-            sudo('sed -i \'/\[Service\]/ a\Environment=\"JAVA_HOME={}\"\'  
/tmp/rstudio-server.service'.format(
+            sudo('sed -i \'/\[Service\]/ a\Environment=\"JAVA_HOME={}\"\'  
/etc/systemd/system/rstudio-server.service'.format(
                 java_home))
             sudo("systemctl daemon-reload")
             sudo('touch /home/{}/.Renviron'.format(os_user))


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

Reply via email to