about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJuan RP <xtraeme@voidlinux.eu>2016-04-29 09:24:01 +0200
committerJuan RP <xtraeme@voidlinux.eu>2016-04-29 09:24:01 +0200
commit7e21c2f151b4363ae1704306125b495ab528c2cd (patch)
treefa72e2de19af0ded786cdedca255b673dd9ba878
parent9d66fae1c047857cad2cbf45dcf41f07fcc44ef0 (diff)
downloadhrmpf-7e21c2f151b4363ae1704306125b495ab528c2cd.tar.gz
hrmpf-7e21c2f151b4363ae1704306125b495ab528c2cd.tar.xz
hrmpf-7e21c2f151b4363ae1704306125b495ab528c2cd.zip
dracut/adduser.sh: remove double whitespace from sudoers.
This lets the installer remove the anon rule from etc/sudoers.
-rw-r--r--dracut/adduser.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/dracut/adduser.sh b/dracut/adduser.sh
index f006424..dbcbd35 100644
--- a/dracut/adduser.sh
+++ b/dracut/adduser.sh
@@ -32,7 +32,7 @@ chroot ${NEWROOT} sh -c "echo "$USERNAME:voidlinux" | chpasswd -c SHA512"
 
 # Enable sudo permission by default.
 if [ -f ${NEWROOT}/etc/sudoers ]; then
-    echo "${USERNAME}  ALL=(ALL) NOPASSWD: ALL" >> ${NEWROOT}/etc/sudoers
+    echo "${USERNAME} ALL=(ALL) NOPASSWD: ALL" >> ${NEWROOT}/etc/sudoers
 fi
 
 if [ -d ${NEWROOT}/etc/polkit-1 ]; then