Commit d28657d7 authored by Bidek56's avatar Bidek56

Added PYTHONPATH to sudo

parent 9089b66a
...@@ -65,7 +65,7 @@ if [ $(id -u) == 0 ] ; then ...@@ -65,7 +65,7 @@ if [ $(id -u) == 0 ] ; then
# Exec the command as NB_USER with the PATH and the rest of # Exec the command as NB_USER with the PATH and the rest of
# the environment preserved # the environment preserved
echo "Executing the command: $cmd" echo "Executing the command: $cmd"
exec sudo -E -H -u $NB_USER PATH=$PATH $cmd exec sudo -E -H -u $NB_USER PATH=$PATH PYTHONPATH=$PYTHONPATH $cmd
else else
if [[ ! -z "$NB_UID" && "$NB_UID" != "$(id -u)" ]]; then if [[ ! -z "$NB_UID" && "$NB_UID" != "$(id -u)" ]]; then
echo 'Container must be run as root to set $NB_UID' echo 'Container must be run as root to set $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