Commit 9f9e5ca8 authored by Peter Parente's avatar Peter Parente Committed by GitHub

Merge pull request #610 from datwiz/startup-usermod-check

In start.sh ensure usename jovyan exists before attempting usermod
parents e2798680 44d010e9
......@@ -30,9 +30,11 @@ done
# Handle special flags if we're root
if [ $(id -u) == 0 ] ; then
# Handle username change. Since this is cheap, do this unconditionally
# Only attempt to change the jovyan username if it exists
if id jovyan &> /dev/null ; then
echo "Set username to: $NB_USER"
usermod -d /home/$NB_USER -l $NB_USER jovyan
fi
# Handle case where provisioned storage does not have the correct permissions by default
# Ex: default NFS/EFS (no auto-uid/gid)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment