added aurhelper check for pacman.conf aur-repo

This commit is contained in:
Dan 2022-02-05 14:43:39 +13:00
parent 7985039d79
commit 7ca22bca01
Signed by: dan
GPG Key ID: 57ABEF39C546B028
1 changed files with 8 additions and 3 deletions

View File

@ -60,7 +60,12 @@ secrets file = /etc/rsyncd.secrets
systemctl enable --now rsyncd.service
# Add repository to pacman.conf
if AURHELPER=$(pacman -Qmq | grep -E 'yay|pikaur|paru|trizen') ; then
echo "[homerepo-aur]
Server = http://$server:8080/archlinux/\$arch/aur
SigLevel = Never" >> /etc/pacman.conf
else
echo "No AUR helper installed.">&2
fi
echo "[homerepo]
Server = http://$server:8080/archlinux/\$arch" >> /etc/pacman.conf
echo "[homerepo-aur]
Server = http://$server:8080/archlinux/\$arch/aur" >> /etc/pacman.conf
Server = http://$server:8080/archlinux/\$arch" >> /etc/pacman.conf