Skip to content

Commit

Permalink
Merge pull request #1065 from carstenpohllhind/regexp-centos-friendly
Browse files Browse the repository at this point in the history
Changed the regular expression in start.sh that reads the /etc/sudoer…
  • Loading branch information
parente authored May 5, 2020
2 parents bfb2be7 + c32ba3a commit 3b1f4f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base-notebook/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b1f4f5

Please sign in to comment.