Skip to content
Snippets Groups Projects
Unverified Commit 0e961c04 authored by Ravi Tripathi's avatar Ravi Tripathi Committed by GitHub
Browse files

Merge pull request #1 from diedpigs/2.1-patch-1

2.1 patch 1
parents 2de94d70 de2d44af
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash #!/usr/bin/env bash
module reset module reset
<%= context.custom_environment %>
# load RStudio Server # load RStudio Server
module load <%= context.rstudio_version %> module load <%= context.rstudio_version %>
...@@ -21,12 +19,19 @@ export RSESSION_WRAPPER_FILE="${PWD}/rsession.sh" ...@@ -21,12 +19,19 @@ export RSESSION_WRAPPER_FILE="${PWD}/rsession.sh"
( (
umask 077 umask 077
sed 's/^ \{2\}//' > "${RSESSION_WRAPPER_FILE}" << EOL sed 's/^ \{2\}//' > "${RSESSION_WRAPPER_FILE}" << EOL
#!/usr/bin/env bash #!/bin/bash -l
# Log all output from this script # Log all output from this script
export RSESSION_LOG_FILE="${PWD}/rsession.log" export RSESSION_LOG_FILE="${PWD}/rsession.log"
exec &>>"\${RSESSION_LOG_FILE}" exec &>>"\${RSESSION_LOG_FILE}"
# load R
module load <%= context.r_version %>
<%= context.custom_environment %>
module list
# Launch the original command # Launch the original command
echo "Launching rsession..." echo "Launching rsession..."
set -x set -x
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment