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

commit 3cf1a422527f6838493b447c464006bc733ba7a5
parent 038ef790fa743176bf05a64c41b5645f61225afa
Author: Luke <>
Date:   Fri,  6 Oct 2017 08:30:21 -0700

fix of root installing with packer

Diffstat: | 6+++++- | 3+--
2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/ b/ @@ -36,6 +36,8 @@ then dialog --title "Let's get this party started!" --msgbox "The rest of the installation will now be totally automated, so you can sit back and relax.\n\nIt will take some time, but when done, you'll can relax even more with your complete system.\n\nNow just press <OK> and the system will begin installation!" 13 60 blue Now installing main programs... sudo pacman --noconfirm --needed -S base-devel xorg-xinit xorg-server rxvt-unicode feh ffmpeg pulseaudio pulseaudio-alsa arandr pavucontrol pamixer mpv wget rofi vim w3m ranger mediainfo poppler highlight tmux calcurse htop newsbeuter mpd mpc ncmpcpp network-manager-applet networkmanager imagemagick atool libcaca compton transset-df markdown mupdf evince rsync git youtube-dl youtube-viewer cups screenfetch scrot unzip unrar ntfs-3g offlineimap msmtp notmuch notmuch-mutt dosfstools fzf r pandoc || (echo "Error installing basic packages. Check your internet connection and pacman keyring." >> LARBS.log && error) +else + dialog --no-cancel --inputbox "Input the name of a non-root user to install AUR packages as." 10 60 2> .name fi for choice in $choices @@ -90,11 +92,13 @@ done if [[ -e .firstrun ]] then + USER=$(cat .firstrun) blue Downloading next portion of the script \(\)... - curl > /home/$USER/ && blue Running script as $(whoami)... + curl > /home/$USER/ && blue Running script as $USER... sudo -u $USER bash /home/$USER/ || red Error when running rm /home/$USER/ else + USER=$(cat .name) blue Downloading next portion of the script \(\)... curl > /home/$USER/ && blue Running aur_packages as $(whoami)... sudo -u $USER bash /home/$USER/ || red Error when running aur_packages... diff --git a/ b/ @@ -19,7 +19,6 @@ do done USER=$(cat name) -rm name useradd -m -g wheel -s /bin/bash $USER echo "$USER:$(cat pass1)" | chpasswd @@ -27,7 +26,7 @@ echo "$USER:$(cat pass1)" | chpasswd shred -u pass1 shred -u pass2 -touch .firstrun +echo $USER > .firstrun curl -O && bash rm .firstrun