summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorTom Barrett <tom@tombarrett.xyz>2021-07-21 22:17:12 +0200
committerTom Barrett <tom@tombarrett.xyz>2021-07-21 22:17:12 +0200
commit79aaa34b2db55595d011d8746407fcafb9047c75 (patch)
tree87cb0de386b4a7f32a45011ba73d522b1191c8a4 /arch
parentd25d43d9d29585b0f053de0a1590e4f1bbd715ab (diff)
updated
Diffstat (limited to 'arch')
-rwxr-xr-xarch/required19
1 files changed, 10 insertions, 9 deletions
diff --git a/arch/required b/arch/required
index ad8c2b8..ffc0604 100755
--- a/arch/required
+++ b/arch/required
@@ -1,16 +1,17 @@
#!/bin/bash
-# run as root
+set -e
+U=tom
pacman -S --needed - < mainline
+useradd -m $U
+passwd $U
-useradd -m tom
+mkdir /home/$U/yay
+git clone https://aur.archlinux.org/yay-bin.git /home/$U/yay
-mkdir /home/tom/yay
-git clone https://aur.archlinux.org/yay-bin.git /home/tom/yay
+chown $U:$U -R /home/$U
-chown tom:tom -R /home/tom
+echo "$U ALL=(ALL) ALL" >> /etc/sudoers
-cd /home/tom/yay && sudo -u tom makepkg -si --noconfirm
+cd /home/$U/yay && sudo -u $U makepkg -si --noconfirm
-sudo -u tom yay -Syu --noconfirm
-
-sudo -u tom yay -S --needed - < aur
+sudo -u $U yay -Syu --noconfirm