From 16c3d8937f4e2e110ef99587b88dba21322f9254 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Sch=C3=A4ferdiek?= Date: Mon, 22 Mar 2021 23:30:09 +0100 Subject: [PATCH] Update pacman reflector hook --- etc/pacman.d/hooks/mirrorupgrade.hook | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/pacman.d/hooks/mirrorupgrade.hook b/etc/pacman.d/hooks/mirrorupgrade.hook index 8d170b2..5779f47 100644 --- a/etc/pacman.d/hooks/mirrorupgrade.hook +++ b/etc/pacman.d/hooks/mirrorupgrade.hook @@ -7,4 +7,4 @@ Target = pacman-mirrorlist Description = Updating pacman-mirrorlist with reflector and removing pacnew... When = PostTransaction 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' \ No newline at end of file