Commit 4b3b6697 authored by Gaetan Semet's avatar Gaetan Semet

Fix sudoers.d inclusion on debian img (fix #394)

Signed-off-by: default avatarGaetan Semet <gaetan@xeberon.net>
parent 2689d1d3
...@@ -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