Use reflector timer

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2023-01-15 00:56:18 +01:00
parent 76579164a9
commit 5fb4aeeab7
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
4 changed files with 19 additions and 32 deletions

View file

@ -1,19 +0,0 @@
#!/usr/bin/env bash
#
# SCRIPT NAME:
# update-mirror
#
# AUTHOR:
# Severin Kaderli <severin@kaderli.dev>
#
# DESCRIPTION:
# Updates pacman mirror list using reflector
#
# USAGE:
# ./update-mirror
. /home/severin/.local/bin/utils
{
print_time_log "update-mirror" "Update pacman mirror list"
reflector --country Switzerland --age 12 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
} >> /home/severin/.local/log/cron.log 2>&1

View file

@ -0,0 +1,5 @@
--save /etc/pacman.d/mirrorlist
--country Switzerland
--age 12
--protocol https
--sort rate