larbs

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

commit 9eeee4ed0306d8206dd7a479a85ff2182d7c908f
parent 1889c36161bff8363a0363c0948786cb09354668
Author: Luke <luke@lukesmith.xyz>
Date:   Sun,  8 Oct 2017 22:02:09 -0700

LARBS.log fix

Diffstat:
Mlarbs.sh | 12++++++------
Mlarbs_user.sh | 4++--
2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/larbs.sh b/larbs.sh @@ -1,9 +1,12 @@ #!/bin/bash +echo "LARBS started $(date)" >> /tmp/LARBS.log +chmod 777 /tmp/LARBS.log + cd / pacman -S --noconfirm --needed dialog || (echo "Error at script start: Are you sure you're running this as the root user? Are you sure you have an internet connection?" && exit) -blue() { printf "\n\033[0;34m $* \033[0m\n\n" && (echo $* >> LARBS.log) ;} -red() { printf "\n\033[0;31m $* \033[0m\n\n" && (echo ERROR: $* >> LARBS.log) ;} +blue() { printf "\n\033[0;34m $* \033[0m\n\n" && (echo $* >> /tmp/LARBS.log) ;} +red() { printf "\n\033[0;31m $* \033[0m\n\n" && (echo ERROR: $* >> /tmp/LARBS.log) ;} 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 @@ -111,15 +114,12 @@ done curl https://raw.githubusercontent.com/LukeSmithxyz/larbs/master/sudoers_tmp > /etc/sudoers cd /tmp -blue Changin working directory to /tmp/... +blue Changing working directory to /tmp/... blue Downloading next portion of the script \(larbs_user.sh\)... curl https://raw.githubusercontent.com/LukeSmithxyz/larbs/master/larbs_user.sh > /tmp/larbs_user.sh && blue Running larbs_user.sh script as $NAME... sudo -u $NAME bash /tmp/larbs_user.sh || red Error when running larbs_user.sh... rm -f /tmp/larbs_user.sh -cat /tmp/LARBS.log >> /LARBS.log -cp /LARBS.log LARBS.log && chmod 777 LARBS.log - blue Enabling Network Manager... systemctl enable NetworkManager diff --git a/larbs_user.sh b/larbs_user.sh @@ -1,7 +1,7 @@ #!/bin/bash -blue() { printf "\n\033[0;34m $* \033[0m\n\n" && (echo $* >> LARBS.log) ;} -red() { printf "\n\033[0;31m $* \033[0m\n\n" && (echo ERROR: $* >> LARBS.log) ;} +blue() { printf "\n\033[0;34m $* \033[0m\n\n" && (echo $* >> /tmp/LARBS.log) ;} +red() { printf "\n\033[0;31m $* \033[0m\n\n" && (echo ERROR: $* >> /tmp/LARBS.log) ;} NAME=$(whoami)