Use reflector timer
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
76579164a9
commit
5fb4aeeab7
4 changed files with 19 additions and 32 deletions
|
@ -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
|
5
system/etc/xdg/reflector/reflector.conf
Normal file
5
system/etc/xdg/reflector/reflector.conf
Normal file
|
@ -0,0 +1,5 @@
|
|||
--save /etc/pacman.d/mirrorlist
|
||||
--country Switzerland
|
||||
--age 12
|
||||
--protocol https
|
||||
--sort rate
|
Loading…
Add table
Add a link
Reference in a new issue