Browse Source

installer: remove liveuser from /etc/sudoers in local installation.

Close #43
Juan RP 9 years ago
parent
commit
f0722b06e5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      installer.sh.in

+ 1 - 0
installer.sh.in

@@ -856,6 +856,7 @@ ${BOLD}Do you want to continue?${RESET}" 20 80 || return
         # Remove live user.
         echo "Removing $USERNAME live user from targetdir ..." >$LOG
         chroot $TARGETDIR userdel -r $USERNAME >$LOG 2>&1
+        sed -i -e "/$USERNAME ALL=.*/d" $TARGETDIR/etc/sudoers
         DIALOG --title "Check $LOG for details" \
             --infobox "Rebuilding initramfs for target ..." 4 60
         echo "Rebuilding initramfs for target ..." >$LOG