Skip to content

Commit 3b1f4f5

Browse files
authored
Merge pull request #1065 from carstenpohllhind/regexp-centos-friendly
Changed the regular expression in start.sh that reads the /etc/sudoer…
2 parents bfb2be7 + c32ba3a commit 3b1f4f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base-notebook/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ if [ $(id -u) == 0 ] ; then
9393
fi
9494

9595
# 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
96+
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
9797

9898
# Exec the command as NB_USER with the PATH and the rest of
9999
# the environment preserved

0 commit comments

Comments
 (0)