fix script crash when user is not jovyan, and fix spurious warnings when $HOME environment is not "/home/jovyan" #1649
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi, I used to build my own docker image based on the
jupyter/base-notebook
image with a modified username (viausermod
command) previously. When I updatedbase-notebook
to the latest version, I found that the jupyterlab failed to start without any error message.I check the
start.sh
script, and I findid -u jovyan 2>/dev/null
andid -g jovyan 2>/dev/null
added in #1546 would return a non-zero value and then thestart.sh
would exit whenjovyan
user orjovyan
group don't exist. So I define an additional function to callid
command to avoid the main process geting a non-zero value.In addition, I find there would be a warning message after I modify the $HOME environment variable. I find the code annotations describe checking the permission of the
$HOME
path, but the code uses a specified home path/home/jovyan
. I don't know whether it is a mistake, and I also modify these code. Please correct me if my understanding is wrong.