Skip to content

Commit

Permalink
Preserve env variable LD_LIBRARY_PATH explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
benz0li committed Jan 24, 2023
1 parent bcdc83f commit cf12d91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions base/scripts/usr/local/bin/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ if [ "$(id -u)" == 0 ] ; then
unset_explicit_env_vars
_log "Running as ${NB_USER}:" "${cmd[@]}"
exec sudo --preserve-env --set-home --user "${NB_USER}" \
LD_LIBRARY_PATH="${LD_LIBRARY_PATH:-}" \
PATH="${PATH}" \
PYTHONPATH="${PYTHONPATH:-}" \
"${cmd[@]}"
Expand Down

0 comments on commit cf12d91

Please sign in to comment.