X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F10adduser;h=1a80e26b1250b2efb138a0f23670cf1cb3c875ea;hb=c303d09e10ef3774540af4b91d0f25bf8f3c1981;hp=e5067dd8c8e94ff3cb76da8a5de5fb9f45b3f3b1;hpb=482099e5a39fa3f8eec108a4e26182647c8cb4d6;p=live-boot-grml.git diff --git a/scripts/live-bottom/10adduser b/scripts/live-bottom/10adduser index e5067dd..1a80e26 100755 --- a/scripts/live-bottom/10adduser +++ b/scripts/live-bottom/10adduser @@ -59,7 +59,7 @@ EOF if [ -z "${NOSUDO}" ] then - if [ -f /root/etc/sudoers ] + if ! grep -q "${USERNAME}" /root/etc/sudoers then echo "${USERNAME} ALL=(ALL) NOPASSWD: ALL" >> /root/etc/sudoers