Skipping sudo script if username is root (Closes: #701788).
authorDaniel Baumann <daniel@debian.org>
Wed, 3 Apr 2013 15:52:17 +0000 (17:52 +0200)
committerDaniel Baumann <daniel@debian.org>
Wed, 3 Apr 2013 15:52:17 +0000 (17:52 +0200)
scripts/config/0040-sudo

index 5786b18..da49bd3 100755 (executable)
@@ -34,6 +34,13 @@ Sudo ()
 
 Configure_sudo ()
 {
+       # Skip sudo configuration if username is root
+       case "${LIVE_USERNAME}" in
+               root)
+                       return
+                       ;;
+       esac
+
        # Checking if package is already configured differently
        if grep -qs "^${LIVE_USERNAME}" /etc/sudoers.d/live
        then