Now using /tmp as AUR directory
This commit is contained in:
parent
fd5b28c7e1
commit
7141a6b0e6
BIN
.larbs.sh.swp
BIN
.larbs.sh.swp
Binary file not shown.
10
larbs.sh
10
larbs.sh
@ -19,6 +19,7 @@ done
|
||||
|
||||
chmod 777 .name
|
||||
NAME=$(cat /.name)
|
||||
rm /.name
|
||||
useradd -m -g wheel -s /bin/bash $NAME
|
||||
|
||||
echo "$NAME:$(cat .pass1)" | chpasswd
|
||||
@ -106,11 +107,12 @@ done
|
||||
#Packages I may later add:
|
||||
#pacman --noconfirm --needed -S projectm-pulseaudio
|
||||
|
||||
cd /tmp
|
||||
blue Changin working directory to /tmp/...
|
||||
blue Downloading next portion of the script \(larbs_user.sh\)...
|
||||
chmod 777 /
|
||||
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 /home/$NAME/larbs_user.sh || red Error when running larbs_user.sh...
|
||||
rm -f /home/$NAME/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
|
||||
|
||||
printf "${BLUE}Enabling Network Manager...\n${NC}"
|
||||
systemctl enable NetworkManager
|
||||
|
@ -3,17 +3,7 @@
|
||||
blue() { printf "\033[0;34m $* \033[0m\n" ;}
|
||||
red() { printf "\033[0;31m $* \033[0m\n" ;}
|
||||
|
||||
NAME=$(cat /.name)
|
||||
rm -f .name
|
||||
pwd
|
||||
pwd
|
||||
pwd
|
||||
blue Changing directory to /home/$NAME...
|
||||
pwd
|
||||
pwd
|
||||
pwd
|
||||
|
||||
cd /home/$NAME
|
||||
NAME=$(whoami)
|
||||
|
||||
blue Activating Pulseaudio if not already active...
|
||||
pulseaudio --start && blue Pulseaudio enabled...
|
||||
@ -42,8 +32,6 @@ fi
|
||||
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 \(This may take some time.\)
|
||||
|
Loading…
Reference in New Issue
Block a user