Commit 3b1f4f5e authored by Peter Parente's avatar Peter Parente Committed by GitHub

Merge pull request #1065 from carstenpohllhind/regexp-centos-friendly

Changed the regular expression in start.sh that reads the /etc/sudoer…
parents bfb2be71 c32ba3a7
......@@ -93,7 +93,7 @@ if [ $(id -u) == 0 ] ; then
fi
# Add $CONDA_DIR/bin to sudo secure_path
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
# Exec the command as NB_USER with the PATH and the rest of
# the environment preserved
......
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