Skip to content
Snippets Groups Projects
Verified Commit 0c7eaca9 authored by Olivier Benz's avatar Olivier Benz
Browse files

Fix script 12-r.sh

- Set HOME="/home/root" when run with rootless triplet
- https://github.com/b-data/jupyterlab-r-docker-stack/issues/5
parent 2576d00a
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,9 @@
set -e
if [ "$(id -u)" == 0 ] ; then
if [ "${NB_USER}" = "root" ] && [ "${NB_UID}" = "$(id -u "${NB_USER}")" ] && [ "${NB_GID}" = "$(id -g "${NB_USER}")" ]; then
HOME="/home/root"
fi
# Create user's R package library
RLU=$(run_user_group Rscript -e "cat(Sys.getenv('R_LIBS_USER'))")
run_user_group mkdir -p "$RLU"
......
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