We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bfb2be7 + c32ba3a commit 3b1f4f5Copy full SHA for 3b1f4f5
base-notebook/start.sh
@@ -93,7 +93,7 @@ if [ $(id -u) == 0 ] ; then
93
fi
94
95
# Add $CONDA_DIR/bin to sudo secure_path
96
- sed -r "s#Defaults\s+secure_path=\"([^\"]+)\"#Defaults secure_path=\"\1:$CONDA_DIR/bin\"#" /etc/sudoers | grep secure_path > /etc/sudoers.d/path
+ sed -r "s#Defaults\s+secure_path\s*=\s*\"?([^\"]+)\"?#Defaults secure_path=\"\1:$CONDA_DIR/bin\"#" /etc/sudoers | grep secure_path > /etc/sudoers.d/path
97
98
# Exec the command as NB_USER with the PATH and the rest of
99
# the environment preserved
0 commit comments