From 79aaa34b2db55595d011d8746407fcafb9047c75 Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Wed, 21 Jul 2021 22:17:12 +0200 Subject: updated --- arch/required | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'arch') 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 -- cgit v1.2.3