Now using /tmp as AUR directory

This commit is contained in:
Luke 2017-10-08 16:53:40 -07:00
parent fd5b28c7e1
commit 7141a6b0e6
3 changed files with 7 additions and 17 deletions

Binary file not shown.

View file

@ -19,6 +19,7 @@ done
chmod 777 .name chmod 777 .name
NAME=$(cat /.name) NAME=$(cat /.name)
rm /.name
useradd -m -g wheel -s /bin/bash $NAME useradd -m -g wheel -s /bin/bash $NAME
echo "$NAME:$(cat .pass1)" | chpasswd echo "$NAME:$(cat .pass1)" | chpasswd
@ -106,11 +107,12 @@ done
#Packages I may later add: #Packages I may later add:
#pacman --noconfirm --needed -S projectm-pulseaudio #pacman --noconfirm --needed -S projectm-pulseaudio
cd /tmp
blue Changin working directory to /tmp/...
blue Downloading next portion of the script \(larbs_user.sh\)... blue Downloading next portion of the script \(larbs_user.sh\)...
chmod 777 / curl https://raw.githubusercontent.com/LukeSmithxyz/larbs/master/larbs_user.sh > /tmp/larbs_user.sh && blue Running larbs_user.sh script as $NAME...
curl https://raw.githubusercontent.com/LukeSmithxyz/larbs/master/larbs_user.sh > /home/$NAME/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...
sudo -u $NAME bash /home/$NAME/larbs_user.sh || red Error when running larbs_user.sh... rm -f /tmp/larbs_user.sh
rm -f /home/$NAME/larbs_user.sh
printf "${BLUE}Enabling Network Manager...\n${NC}" printf "${BLUE}Enabling Network Manager...\n${NC}"
systemctl enable NetworkManager systemctl enable NetworkManager

View file

@ -3,17 +3,7 @@
blue() { printf "\033[0;34m $* \033[0m\n" ;} blue() { printf "\033[0;34m $* \033[0m\n" ;}
red() { printf "\033[0;31m $* \033[0m\n" ;} red() { printf "\033[0;31m $* \033[0m\n" ;}
NAME=$(cat /.name) NAME=$(whoami)
rm -f .name
pwd
pwd
pwd
blue Changing directory to /home/$NAME...
pwd
pwd
pwd
cd /home/$NAME
blue Activating Pulseaudio if not already active... blue Activating Pulseaudio if not already active...
pulseaudio --start && blue Pulseaudio enabled... pulseaudio --start && blue Pulseaudio enabled...
@ -42,8 +32,6 @@ fi
done done
} }
blue Changing directory to /home/$NAME...
cd /home/$NAME || red Could not cd to /home/$NAME. Does user and home directory exist?
blue Installing AUR programs... blue Installing AUR programs...
blue \(This may take some time.\) blue \(This may take some time.\)