Commit d7b570a1 authored by Peter Parente's avatar Peter Parente Committed by GitHub

Merge pull request #403 from parente/fix-includedir

Revert "Fix sudoers.d inclusion on debian img (fix #394)"
parents df7a34be 19b9d933
...@@ -28,8 +28,6 @@ if [ $UID == 0 ] ; then ...@@ -28,8 +28,6 @@ if [ $UID == 0 ] ; then
# Enable sudo if requested # Enable sudo if requested
if [ ! -z "$GRANT_SUDO" ]; then if [ ! -z "$GRANT_SUDO" ]; then
# Ensure includedir sudoers.d is not commented
sed -i -E 's|^#(includedir /etc/sudoers.d.*)|\1|g' /etc/sudoers
echo "$NB_USER ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/notebook echo "$NB_USER ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/notebook
fi fi
......
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