|
1 | 1 | #!/bin/sh |
2 | 2 |
|
3 | | -# Luke's Auto Rice Boostrapping Script (LARBS) |
| 3 | +# Luke's Auto Rice Bootstrapping Script (LARBS) |
4 | 4 | # by Luke Smith <[email protected]> |
5 | 5 | # License: GNU GPLv3 |
6 | 6 |
|
@@ -45,7 +45,7 @@ welcomemsg() { |
45 | 45 | } |
46 | 46 |
|
47 | 47 | getuserandpass() { |
48 | | - # Prompts user for new username an password. |
| 48 | + # Prompts user for new username and password. |
49 | 49 | name=$(whiptail --inputbox "First, please enter a name for the user account." 10 60 3>&1 1>&2 2>&3 3>&1) || exit 1 |
50 | 50 | while ! echo "$name" | grep -q "^[a-z_][a-z0-9_-]*$"; do |
51 | 51 | name=$(whiptail --nocancel --inputbox "Username not valid. Give a username beginning with a letter, with only lowercase letters, - or _." 10 60 3>&1 1>&2 2>&3 3>&1) |
@@ -304,7 +304,7 @@ adduserandpass || error "Error adding username and/or password." |
304 | 304 | # in a fakeroot environment, this is required for all builds with AUR. |
305 | 305 | trap 'rm -f /etc/sudoers.d/larbs-temp' HUP INT QUIT TERM PWR EXIT |
306 | 306 | echo "%wheel ALL=(ALL) NOPASSWD: ALL |
307 | | -Defaults:%wheel runcwd=*" >/etc/sudoers.d/larbs-temp |
| 307 | +Defaults:%wheel,root runcwd=*" >/etc/sudoers.d/larbs-temp |
308 | 308 |
|
309 | 309 | # Make pacman colorful, concurrent downloads and Pacman eye-candy. |
310 | 310 | grep -q "ILoveCandy" /etc/pacman.conf || sed -i "/#VerbosePkgLists/a ILoveCandy" /etc/pacman.conf |
@@ -388,5 +388,8 @@ echo "Defaults editor=/usr/bin/nvim" >/etc/sudoers.d/02-larbs-visudo-editor |
388 | 388 | mkdir -p /etc/sysctl.d |
389 | 389 | echo "kernel.dmesg_restrict = 0" > /etc/sysctl.d/dmesg.conf |
390 | 390 |
|
| 391 | +# Cleanup |
| 392 | +rm -f /etc/sudoers.d/larbs-temp |
| 393 | + |
391 | 394 | # Last message! Install complete! |
392 | 395 | finalize |
0 commit comments