summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
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