Update pacman reflector hook

This commit is contained in:
Alexander Schäferdiek 2021-03-22 23:30:09 +01:00
parent 1abd854ea6
commit 16c3d8937f

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 -p https --save /etc/pacman.d/mirrorlist; if [[ -f /etc/pacman.d/mirrorlist.pacnew ]]; then rm /etc/pacman.d/mirrorlist.pacnew; fi" Exec = /bin/sh -c 'systemctl start reflector.service; if [ -f /etc/pacman.d/mirrorlist.pacnew ]; then rm /etc/pacman.d/mirrorlist.pacnew; fi'