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:
Adrian Reber 2021-10-01 14:54:14 +02:00
parent 35cc062b71
commit ed4958b2f5
No known key found for this signature in database
GPG key ID: 82C9378ED3C4906A
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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