Commit 599bb5a3 authored by Anton Akhmerov's avatar Anton Akhmerov Committed by GitHub

update home folder and username on startup

closes #414
parent b4dd11e1
......@@ -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