Commit d7cd9154 authored by Joseph Weston's avatar Joseph Weston
Browse files

pass the environment variables in a more idiomatic way

parent 057b6946
......@@ -13,9 +13,6 @@ if [[ ! -z "$NB_HOSTNAME" ]]; then
hostname "$NB_HOSTNAME"
fi
# Ensure that /opt/conda/bin is in the path (we cannot pass PATH to 'su')
echo 'PATH="/opt/conda/bin:$PATH"' > /etc/profile.d/conda-path
## start the notebook server, passing in all the environment variables
## we run as NB_USER to prevent 'start.sh' from doing its job twice
exec su -l $NB_USER -p -c "/usr/local/bin/start-singleuser.sh $*"
exec su -l $NB_USER -p -c "env PATH=$PATH /usr/local/bin/start-singleuser.sh $*"
Supports Markdown
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