diff --git a/scripts/server.sh b/scripts/server.sh index 4e7fb91..e107669 100644 --- a/scripts/server.sh +++ b/scripts/server.sh @@ -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 \ No newline at end of file +Server = http://$server:8080/archlinux/\$arch" >> /etc/pacman.conf \ No newline at end of file