Fix jovyan hardcode in start-notebook.sh

Contribution (c) Copyright IBM Corp. 2015
This commit is contained in:
Peter Parente
2015-09-22 20:50:15 -04:00
parent d425a3a502
commit 4c34446dc7

View File

@@ -1,7 +1,7 @@
#!/bin/bash
# Change UID of jovyan to NB_UID if it does not match
if [ "$NB_UID" != $(id -u jovyan) ] ; then
# Change UID of NB_USER to NB_UID if it does not match
if [ "$NB_UID" != $(id -u $NB_USER) ] ; then
usermod -u $NB_UID $NB_USER
chown -R $NB_UID $CONDA_DIR
fi