summaryrefslogtreecommitdiff
path: root/scripts/live-bottom/10adduser
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-12-22 10:23:50 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:31:06 +0100
commitd27400ce146c5e3a340eec8f614012ced2ddc29b (patch)
tree54411ef0dabcfde542ca6b0e5a9431c4b1340a12 /scripts/live-bottom/10adduser
parent703b697660daaf53e0c81f8847a877baee04bf40 (diff)
downloadlive-boot-d27400ce146c5e3a340eec8f614012ced2ddc29b.tar.gz
live-boot-d27400ce146c5e3a340eec8f614012ced2ddc29b.zip
Merging casper 1.113.
Diffstat (limited to 'scripts/live-bottom/10adduser')
-rwxr-xr-xscripts/live-bottom/10adduser2
1 files changed, 1 insertions, 1 deletions
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