Skip to content
Snippets Groups Projects
Verified Commit 72c65bda 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
parent b708f00a
No related branches found
No related tags found
No related merge requests found
...@@ -112,8 +112,8 @@ if [ "$(id -u)" == 0 ]; then ...@@ -112,8 +112,8 @@ if [ "$(id -u)" == 0 ]; then
userdel "${NB_USER}" 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}" useradd --no-log-init --home "/home/${NB_USER}${DOMAIN:+@$DOMAIN}" --shell "$(which zsh)" --uid "${NB_UID}" --gid "${NB_GID}" --groups 100 "${NB_USER}"
else else
# Otherwise, and if not the jovyan user, add it to the default group # Otherwise, and if not jovyan or root, add it to the default group
if [[ "${NB_USER}" != "jovyan" ]]; then if [[ "${NB_USER}" != "jovyan" && "${NB_USER}" != "root" ]]; then
usermod -a -G 100 "${NB_USER}" usermod -a -G 100 "${NB_USER}"
fi fi
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