From 7141a6b0e67c150021715f99b9973bb577fc5a14 Mon Sep 17 00:00:00 2001 From: Luke Date: Sun, 8 Oct 2017 16:53:40 -0700 Subject: [PATCH] Now using /tmp as AUR directory --- .larbs.sh.swp | Bin 16384 -> 0 bytes larbs.sh | 10 ++++++---- larbs_user.sh | 14 +------------- 3 files changed, 7 insertions(+), 17 deletions(-) delete mode 100644 .larbs.sh.swp diff --git a/.larbs.sh.swp b/.larbs.sh.swp deleted file mode 100644 index 1d0edc92166d6d9758229c71bda0ef72c40238f9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16384 zcmeHOO>87b6|Mx4#DN5qfDng>w_~%hk$YxsC%emT*1_JGXoYvzu{VE;1FGq+p6PXW zSJPGP@no}!kP;HX0S+KVf&&DkK=_qF0!~P9M1qK)3s)|H1X3gpxxx3Ud+ZtSY+@%8 z0;w&3GyPNjs_Ls(uU>s^w~sw??mV4r9uxR^KYoAq=f@wv>A4%eq=kr!Eyb7L>L*sJ z{Z?i8{xfW_wXQO4T0PY^kyWi&=514cHcj^+R_Zb}12qGOW}vX4ck(u|FhA#}`efq> z-Fe5uhc;6`P%}_7P%}_7P%}_7P%}_7P%}_7@c+wz&2ALWqWL#gU0AKYZ`k+!uIjv1 zeV^ZVzdEhIY6fZsY6fZsY6fZsY6fZsY6fZsY6fZsY6fZs{s$S5fe^Q#U6**nkN5wB z{r|t-C&V(a1pMW8A)W=E0ls~k5Z?lpfhFLd?-k;Ez^lOLfM1FYr;|gTM!XS8o;K3qS{W2sjB$18+|i|J636+ za^W6m$AzK`x<^rJtc>F*?a*>rpxJB+w#h&D%n0{geVjgBK7EktI#H5czpe+*onITS zXyNTw6i4k`=`f6Z<%PMz-*sHKhpSxlqAN-p1^yyrxC!%bzX?|D#L>3$5^XFEPGSj8 z+fn9OoJ2dYmSo%1>nKaP4kOx*66!4^gz_D}se(vGX$Xrt%VJ#VMxAa9fW)NO zAz#LRk%NG))fuI#XWFW;&TIhFKBYcBGrnbeI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l1Mw62qTz8>+WqtkP`YC>Bagla!&(P_sE@>KD z$vuayWSn&|*yC+rijCRkRW8SQp=)TP%nadB74a?+I|VwGOP~xGb~zBfka(m#WG*EE zpX@AdwP%mH|C&drE4RTr=Qh_Ql=nLd)lOt*#N?6P$Rc?E-^ZT$A?&Al|37%Y|2p>l z{{Vgid>!}-@MWM2d<6Iqa3}D0XaYY5UIAVPz6pF0coDEb1Uvxz3R=NWfbRe=0FM9< z0*k=M0sLvQxC{6jw1d9_uK-^I{ta#572pNn^S}nM0I+6oCvXSw3+Mzt2OdKoxF2iW zm-?q>pk|oHL7n8eNjVfthf^Ni{vyrU*tWF`@S#yNea=jh# zYXRPTL+Rp=R6~9Z0;pe#)kHJv62K~L94KG`-Zc0=1TUAPJHd-3Dz`JOL_v4ay?^Kw zsEs9o5SuQf{#{+f0SkI8A;!`#Q}j!kGf!s%3NN9B8S;AUqE)&bQqgBl=D>AYG`?tMYJ2DWs26Pu{2#k-A-1h;njPgVbHnn*~7d5gt)l{>8mlJM>+ z{G=2MeH&NJx=?D_=SwMj=(b8FlqA}Bf3TOCy0X0b@XFN{F2q@URg5Y-c(t&ZPF=Zh z_G$zBplj4W_m8ok;qLJN#kw~M5G0%s0IH!046BSIg;|5%lc1flI@m~zl;d|B@0i6A zi~Dr5(RKp*u(ariMic-5S*%n7FNNOk-pfK z!*FnzS8@=TSu_b(a4=Q*Euf&FQSn3$-;Z=*=c1KxUKoU0|zl$2V(9w{r zx$Itv(et7c_pj6Vq3VV^aNxISrINj$=mWo79aca+D4*AV1vy-jTRL%q1@S`;B;+sc zg{-G~{^c!J!v?32%P+r4?eOCq0t-LsDu)<-=*sa5%{SNYpp$K#@q344{<4Gr0kR8N AWdHyG diff --git a/larbs.sh b/larbs.sh index a598971..534d3cf 100755 --- a/larbs.sh +++ b/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 diff --git a/larbs_user.sh b/larbs_user.sh index 3413ce2..69ad780 100755 --- a/larbs_user.sh +++ b/larbs_user.sh @@ -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.\)