mirror of
https://github.com/Kron4ek/Conty
synced 2024-12-26 09:58:38 +01:00
parent
2d76615f89
commit
543f34dca6
1 changed files with 3 additions and 2 deletions
|
@ -277,7 +277,7 @@ generate_localegen
|
||||||
|
|
||||||
if command -v reflector 1>/dev/null; then
|
if command -v reflector 1>/dev/null; then
|
||||||
echo "Generating mirrorlist..."
|
echo "Generating mirrorlist..."
|
||||||
reflector --connection-timeout 10 --download-timeout 10 --protocol https --score 7 --sort rate --save mirrorlist
|
reflector --connection-timeout 10 --download-timeout 10 --protocol https --score 10 --sort rate --save mirrorlist
|
||||||
reflector_used=1
|
reflector_used=1
|
||||||
else
|
else
|
||||||
generate_mirrorlist
|
generate_mirrorlist
|
||||||
|
@ -345,7 +345,8 @@ run_in_chroot pacman --noconfirm --needed -S base reflector squashfs-tools faker
|
||||||
# Regenerate the mirrorlist with reflector if reflector was not used before
|
# Regenerate the mirrorlist with reflector if reflector was not used before
|
||||||
if [ -z "${reflector_used}" ]; then
|
if [ -z "${reflector_used}" ]; then
|
||||||
echo "Generating mirrorlist..."
|
echo "Generating mirrorlist..."
|
||||||
run_in_chroot reflector --connection-timeout 10 --download-timeout 10 --protocol https --score 7 --sort rate --save /etc/pacman.d/mirrorlist
|
run_in_chroot reflector --connection-timeout 10 --download-timeout 10 --protocol https --score 10 --sort rate --save /etc/pacman.d/mirrorlist
|
||||||
|
run_in_chroot pacman -Syu --noconfirm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export -f install_packages
|
export -f install_packages
|
||||||
|
|
Loading…
Reference in a new issue