projects
/
live-boot-grml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updating to standards 3.8.0.
[live-boot-grml.git]
/
scripts
/
live-bottom
/
10adduser
diff --git
a/scripts/live-bottom/10adduser
b/scripts/live-bottom/10adduser
index
e5067dd
..
1a80e26
100755
(executable)
--- a/
scripts/live-bottom/10adduser
+++ b/
scripts/live-bottom/10adduser
@@
-59,7
+59,7
@@
EOF
if [ -z "${NOSUDO}" ]
then
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
then
echo "${USERNAME} ALL=(ALL) NOPASSWD: ALL" >> /root/etc/sudoers