diff options
| author | Daniel Baumann <daniel@debian.org> | 2007-12-22 10:23:50 +0100 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:31:06 +0100 |
| commit | d27400ce146c5e3a340eec8f614012ced2ddc29b (patch) | |
| tree | 54411ef0dabcfde542ca6b0e5a9431c4b1340a12 /scripts/live-bottom/10adduser | |
| parent | 703b697660daaf53e0c81f8847a877baee04bf40 (diff) | |
| download | live-boot-d27400ce146c5e3a340eec8f614012ced2ddc29b.tar.gz live-boot-d27400ce146c5e3a340eec8f614012ced2ddc29b.zip | |
Merging casper 1.113.
Diffstat (limited to 'scripts/live-bottom/10adduser')
| -rwxr-xr-x | scripts/live-bottom/10adduser | 2 |
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 |
