1
0
Fork 0

do not regen mirrorfile; use existing

This commit is contained in:
Pratham Patel 2022-12-21 12:44:12 +05:30
parent 3601388a91
commit 107e28d1c4
2 changed files with 21 additions and 6 deletions

View File

@ -32,8 +32,8 @@ fi
# SELECT THE FASTEST "HTTPS" MIRRORS
################################################################################
pacman -Sy --noconfirm reflector
MIRRORLIST_FILE="/etc/pacman.d/mirrorlist"
cp mirrorlist $MIRRORLIST_FILE
# check if reflector is already running
pgrep reflector >/dev/null
@ -43,11 +43,6 @@ else
IS_REFLECTOR_RUNNING=n
fi
# remove $MIRRORLIST_FILE if file modification time is more than 10 days
if [[ ! $(find "$MIRRORLIST_FILE" -mtime +10) && $IS_REFLECTOR_RUNNING == "n" ]]; then
rm -f "$MIRRORLIST_FILE"
fi
# pacman config
sed -i "s/#ParallelDownloads = 5/ParallelDownloads = 4/" /etc/pacman.conf || echo "ParallelDownloads = 4" | tee -a /etc/pacman.conf

20
mirrorlist Normal file
View File

@ -0,0 +1,20 @@
################################################################################
################# Arch Linux mirrorlist generated by Reflector #################
################################################################################
# With: reflector --connection-timeout 2 --latest 100 --sort rate --fastest 10 --protocol https
# When: 2022-12-21 07:06:03 UTC
# From: https://archlinux.org/mirrors/status/json/
# Retrieved: 2022-12-21 07:06:03 UTC
# Last Check: 2022-12-21 07:00:32 UTC
Server = https://mirrors.piconets.webwerks.in/archlinux-mirror/$repo/os/$arch
Server = https://arch.lucassymons.net/$repo/os/$arch
Server = https://mirror.sg.gs/archlinux/$repo/os/$arch
Server = https://mirror.jingk.ai/archlinux/$repo/os/$arch
Server = https://mirrors.cat.net/archlinux/$repo/os/$arch
Server = https://mirror.xtom.com.hk/archlinux/$repo/os/$arch
Server = https://archlinux.mirror.liteserver.nl/$repo/os/$arch
Server = https://mirror.0x.sg/archlinux/$repo/os/$arch
Server = https://mirror.guillaumea.fr/archlinux/$repo/os/$arch
Server = https://de.arch.mirror.kescher.at/$repo/os/$arch