Set mirror upgrade hook to only use https mirrors

This commit is contained in:
Alexander Schäferdiek 2019-10-02 08:27:36 +02:00
parent 690d2837ab
commit 626cc0e55b

View file

@ -7,4 +7,4 @@ Target = pacman-mirrorlist
Description = Updating pacman-mirrorlist with reflector and removing pacnew... Description = Updating pacman-mirrorlist with reflector and removing pacnew...
When = PostTransaction When = PostTransaction
Depends = reflector Depends = reflector
Exec = /usr/bin/env sh -c "reflector --country 'Germany' --latest 200 --age 24 --sort rate --save /etc/pacman.d/mirrorlist; if [[ -f /etc/pacman.d/mirrorlist.pacnew ]]; then rm /etc/pacman.d/mirrorlist.pacnew; fi" Exec = /usr/bin/env sh -c "reflector --country 'Germany' --latest 200 --age 24 --sort rate -p https --save /etc/pacman.d/mirrorlist; if [[ -f /etc/pacman.d/mirrorlist.pacnew ]]; then rm /etc/pacman.d/mirrorlist.pacnew; fi"