larbs

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 8740b69be0e786cf3e6d7d8fb156f525c6d372ae
parent 0d50d2f5e1680c8b4e6f47ab9caa5d6647c29bfd
Author: Luke <luke@lukesmith.xyz>
Date:   Sun,  8 Oct 2017 13:34:00 -0700

name fixes

Diffstat:
Mlarbs.sh | 21+++++++++++----------
Mlarbs_user.sh | 2+-
Dpacaur.tar.gz | 0
3 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/larbs.sh b/larbs.sh @@ -6,24 +6,24 @@ red() { printf "\033[0;31m $* \033[0m\n" && (chmod 777 LARBS.log && echo ERROR: dialog --title "Welcome!" --msgbox "Welcome to Luke's Auto-Rice Bootstrapping Script!\n\nThis script will automatically install a fully-featured i3wm Arch Linux desktop, which I use as my main machine.\n\n-Luke" 10 60 -dialog --no-cancel --inputbox "First, please enter a name for the user account." 10 60 2> name +dialog --no-cancel --inputbox "First, please enter a name for the user account." 10 60 2> .name -dialog --no-cancel --passwordbox "Enter a password for that user." 10 60 2> pass1 -dialog --no-cancel --passwordbox "Reype password." 10 60 2> pass2 +dialog --no-cancel --passwordbox "Enter a password for that user." 10 60 2> .pass1 +dialog --no-cancel --passwordbox "Reype password." 10 60 2> .pass2 -while [ $(cat pass1) != $(cat pass2) ] +while [ $(cat .pass1) != $(cat .pass2) ] do - dialog --no-cancel --passwordbox "Passwords do not match.\n\nEnter password again." 10 60 2> pass1 - dialog --no-cancel --passwordbox "Reype password." 10 60 2> pass2 + dialog --no-cancel --passwordbox "Passwords do not match.\n\nEnter password again." 10 60 2> .pass1 + dialog --no-cancel --passwordbox "Reype password." 10 60 2> .pass2 done -NAME=$(cat name) +NAME=$(cat .name) useradd -m -g wheel -s /bin/bash $NAME -echo "$NAME:$(cat pass1)" | chpasswd +echo "$NAME:$(cat .pass1)" | chpasswd #I shred the password for safety's sake. -shred -u pass1 -shred -u pass2 +shred -u .pass1 +shred -u .pass2 cmd=(dialog --separate-output --checklist "Select additional packages to install with <SPACE>:" 22 76 16) options=(1 "LaTeX packages" off @@ -106,6 +106,7 @@ done #pacman --noconfirm --needed -S projectm-pulseaudio blue Downloading next portion of the script \(user.sh\)... +echo $NAME > /home/$NAME/.name && chmod 777 /home/$NAME/.name curl https://raw.githubusercontent.com/LukeSmithxyz/larbs/master/user.sh > /home/$NAME/user.sh && blue Running user.sh script as $NAME... sudo -u $NAME bash /home/$NAME/user.sh || red Error when running user.sh... rm -f /home/$NAME/user.sh diff --git a/larbs_user.sh b/larbs_user.sh @@ -3,7 +3,7 @@ blue() { printf "\033[0;34m $* \033[0m\n" && (echo $* >> LARBS.log) ;} red() { printf "\033[0;31m $* \033[0m\n" && (echo ERROR: $* >> LARBS.log) ;} -NAME=$(cat .firstrun) +NAME=$(cat .name) blue Changing directory to /home/$NAME... cd /home/$NAME diff --git a/pacaur.tar.gz b/pacaur.tar.gz Binary files differ.