From d27400ce146c5e3a340eec8f614012ced2ddc29b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 22 Dec 2007 10:23:50 +0100 Subject: Merging casper 1.113. --- scripts/live-bottom/10adduser | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/live-bottom/10adduser') 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 -- cgit v1.2.3