Commit ead1caec authored by Aaron Vinson's avatar Aaron Vinson

improve secure_path modification by storing in sudoers.d

parent 9faed6a1
......@@ -60,7 +60,7 @@ if [ $(id -u) == 0 ] ; then
fi
# Add $CONDA_DIR/bin to sudo secure_path
sed -ri "s#Defaults\s+secure_path=\"([^\"]+)\"#Defaults secure_path=\"\1:$CONDA_DIR/bin\"#" /etc/sudoers
sed -r "s#Defaults\s+secure_path=\"([^\"]+)\"#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