From c702469cfe09440e50006c536a4210ac8463313c Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 3 Oct 2018 18:43:41 +0200 Subject: [PATCH] Reconfigure the java environment for R. --- smartgears/dataminer_app/tasks/dataminer-app.yml | 3 +++ smartgears/r_connector/tasks/main.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/smartgears/dataminer_app/tasks/dataminer-app.yml b/smartgears/dataminer_app/tasks/dataminer-app.yml index 165fec23..d837652f 100644 --- a/smartgears/dataminer_app/tasks/dataminer-app.yml +++ b/smartgears/dataminer_app/tasks/dataminer-app.yml @@ -33,6 +33,9 @@ shell: /usr/local/bin/wps-config-fixer # notify: Restart smartgears + - name: Reconfigure the Java environment for R + shell: R CMD javareconf + - name: Remove the file that lists the installed algorithms, after an upgrade file: dest={{ smartgears_user_home }}/wps_algorithms_install_log/already_installed_algorithms.txt state=absent register: reinstall_algorithms diff --git a/smartgears/r_connector/tasks/main.yml b/smartgears/r_connector/tasks/main.yml index fc924594..63e21ea9 100644 --- a/smartgears/r_connector/tasks/main.yml +++ b/smartgears/r_connector/tasks/main.yml @@ -72,6 +72,9 @@ - name: Install the cron job that regulary updates the Rprofile cron: name="Update the RStudioConfiguration repo" special_time=daily job="cd {{ r_connector_rprofile_path }} ; svn update >/dev/null 2>&1" + - name: Reconfigure the Java environment for R + shell: R CMD javareconf + become: True become_user: '{{ smartgears_user }}' when: r_connector_install