Commit 2a0a74fc authored by Peter Parente's avatar Peter Parente Committed by GitHub

Merge pull request #424 from akhmerov/patch-1

update home folder and username on startup
parents b4dd11e1 599bb5a3
......@@ -6,6 +6,9 @@ set -e
# Handle special flags if we're root
if [ $(id -u) == 0 ] ; then
# Handle username change. Since this is cheap, do this unconditionally
usermod -d /home/$NB_USER -l $NB_USER jovyan
# Change UID of NB_USER to NB_UID if it does not match
if [ "$NB_UID" != $(id -u $NB_USER) ] ; then
echo "Set user UID to: $NB_UID"
......
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