added reflector service

This commit is contained in:
Afonso Franco 2023-03-15 21:23:21 +00:00
parent 4ee086ace9
commit 3ba2639680
Signed by: afonso
SSH key fingerprint: SHA256:JiuxZNdA5bRWXPMUJChI0AQ75yC+cXY4xM0IaVwEVys
9 changed files with 4 additions and 47 deletions

View file

@ -10,9 +10,10 @@ pacman_vars() {
init() {
pacman -Syu --noconfirm
echo 'Installing reflector'
sudo pacman -S reflector --noconfirm
pacman -S reflector --noconfirm
echo 'Generating mirrorlist...'
reflector -c pt,es,fr,uk --sort rate | tee /etc/pacman.d/mirrorlist
printf "--save /etc/pacman.d/mirrorlist\n--protocol https\n--country Portugal,Spain,France,Unite\ Kigdom,Germany,Netherlands\n--latest 50\n--score 10\n--sort rate" | tee /etc/xdg/reflector/reflector.conf
systemctl enable --now reflector.service
pacman -S sed
echo "Performing config changes to pacman"
pacman_vars