Scan CentOS Stream 9 primary mirror every two hours
Switch 'Fedora Codecs' to scan-primary-mirror Signed-off-by: Adrian Reber <adrian@lisas.de>
This commit is contained in:
parent
35cc062b71
commit
ed4958b2f5
2 changed files with 3 additions and 2 deletions
|
@ -18,8 +18,8 @@ MAILTO=root
|
|||
15 */2 * * * mirrormanager /usr/local/bin/umdl-required archive /var/log/mirrormanager/umdl-required.log
|
||||
45 */2 * * * mirrormanager /usr/local/bin/umdl-required alt /var/log/mirrormanager/umdl-required.log
|
||||
|
||||
# check if category CentOS needs updating once a day
|
||||
15 20 * * * mirrormanager /usr/local/bin/umdl-required centos /var/log/mirrormanager/umdl-required.log
|
||||
# check if category CentOS needs updating every two hours
|
||||
33 */2 * * * mirrormanager /usr/local/bin/umdl-required centos /var/log/mirrormanager/umdl-required.log
|
||||
|
||||
# Sync netblocks list once a day
|
||||
30 0 * * * mirrormanager cd /usr/share/mirrormanager2 && /usr/bin/mm2_get_global_netblocks /var/lib/mirrormanager/global_netblocks.txt
|
||||
|
|
|
@ -30,6 +30,7 @@ elif [ "${1}" == "archive" ]; then
|
|||
CATEGORY="Archive"
|
||||
elif [ "${1}" == "codecs" ]; then
|
||||
CATEGORY="Codecs"
|
||||
SCANNER="/usr/local/bin/scan-primary-mirror"
|
||||
/usr/local/bin/lock-wrapper umdl-${1} "${SCANNER} --category \"Fedora ${CATEGORY}\""
|
||||
exit 0
|
||||
elif [ "${1}" == "centos" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue