File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
images/docker-stacks-foundation Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ if [ "$(id -u)" == 0 ] ; then
140
140
unset_explicit_env_vars
141
141
_log " Running as ${NB_USER} :" " ${cmd[@]} "
142
142
exec sudo --preserve-env --set-home --user " ${NB_USER} " \
143
+ LD_LIBRARY_PATH=" ${LD_LIBRARY_PATH} " \
143
144
PATH=" ${PATH} " \
144
145
PYTHONPATH=" ${PYTHONPATH:- } " \
145
146
" ${cmd[@]} "
@@ -165,7 +166,7 @@ if [ "$(id -u)" == 0 ] ; then
165
166
# used `env_delete` from /etc/sudoers. It has higher priority than the
166
167
# `--preserve-env` flag and the `env_keep` configuration.
167
168
#
168
- # - We preserve PATH and PYTHONPATH explicitly. Note however that sudo
169
+ # - We preserve LD_LIBRARY_PATH, PATH and PYTHONPATH explicitly. Note however that sudo
169
170
# resolves `${cmd[@]}` using the "secure_path" variable we modified
170
171
# above in /etc/sudoers.d/path. Thus PATH is irrelevant to how the above
171
172
# sudo command resolves the path of `${cmd[@]}`. The PATH will be relevant
You can’t perform that action at this time.
0 commit comments