3 changed files with 11 additions and 21 deletions
@ -0,0 +1,4 @@ |
|||
post_install() { |
|||
# Start the reflector service's timer |
|||
systemctl enable --now reflector.timer |
|||
} |
@ -1,12 +0,0 @@ |
|||
# Shamelessly copied from https://wiki.archlinux.org/index.php/Reflector#pacman_hook |
|||
[Trigger] |
|||
Operation = Upgrade |
|||
Type = Package |
|||
Target = pacman-mirrorlist |
|||
Target = tl-reflector-hook |
|||
|
|||
[Action] |
|||
Description = Updating pacman-mirrorlist with reflector and removing pacnew... |
|||
When = PostTransaction |
|||
Depends = reflector |
|||
Exec = /bin/sh -c 'systemctl start reflector.service; if [ -f /etc/pacman.d/mirrorlist.pacnew ]; then rm /etc/pacman.d/mirrorlist.pacnew; fi' |
Loading…
Reference in new issue