Commit 77ea89d2 authored by Stanislav Khotinok's avatar Stanislav Khotinok

Added possibility to change GID of the NB_USER if NB_GID

parent bb222f49
......@@ -12,6 +12,11 @@ if [ $UID == 0 ] ; then
chown -R $NB_UID $CONDA_DIR .
fi
# Change GID of NB_USER to NB_GID if NB_GID is passed as a parameter
if [ "$NB_GID" ] ; then
groupmod -g $NB_GID -o $(id -g -n $NB_USER)
fi
# Enable sudo if requested
if [ ! -z "$GRANT_SUDO" ]; then
echo "$NB_USER ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/notebook
......
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