blob: bf6c8a479249f2d0b41b9170c2b7727f32647c03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/bash
set -e
U=tom
pacman -S --needed - <mainline
useradd -m $U
passwd $U
mkdir /home/$U/yay
git clone https://aur.archlinux.org/yay-bin.git /home/$U/yay
chown $U:$U -R /home/$U
echo "$U ALL=(ALL) ALL" >>/etc/sudoers
cd /home/$U/yay && sudo -u $U makepkg -si --noconfirm
sudo -u $U yay -Syu --noconfirm
|