Commit 4947f581 authored by Peter Parente's avatar Peter Parente Committed by GitHub

Merge pull request #396 from Stibbons/fix_sudoers_pr

Fix sudoers.d inclusion with debian img (fix #394)
parents 74a1bc97 4b3b6697
...@@ -25,6 +25,8 @@ if [ $UID == 0 ] ; then ...@@ -25,6 +25,8 @@ 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