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

Update script start.sh

- Do not add to default group when run with rootless triplet
- https://github.com/b-data/jupyterlab-r-docker-stack/issues/5
parent 7ae4bde5
No related branches found
No related tags found
No related merge requests found
......@@ -116,8 +116,8 @@ if [ "$(id -u)" == 0 ]; then
userdel "${NB_USER}"
useradd --no-log-init --home "/home/${NB_USER}${DOMAIN:+@$DOMAIN}" --shell "$(which zsh)" --uid "${NB_UID}" --gid "${NB_GID}" --groups 100 "${NB_USER}"
else
# Otherwise, and if not the jovyan user, add it to the default group
if [[ "${NB_USER}" != "jovyan" ]]; then
# Otherwise, and if not jovyan or root, add it to the default group
if [[ "${NB_USER}" != "jovyan" && "${NB_USER}" != "root" ]]; then
usermod -a -G 100 "${NB_USER}"
fi
fi
......
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