From ed4958b2f5f290323a9df048a9fa40ec1f790c06 Mon Sep 17 00:00:00 2001 From: Adrian Reber Date: Fri, 1 Oct 2021 14:54:14 +0200 Subject: [PATCH] Scan CentOS Stream 9 primary mirror every two hours Switch 'Fedora Codecs' to scan-primary-mirror Signed-off-by: Adrian Reber --- roles/mirrormanager/backend/files/backend.cron | 4 ++-- roles/mirrormanager/backend/files/umdl-required | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/roles/mirrormanager/backend/files/backend.cron b/roles/mirrormanager/backend/files/backend.cron index e2cbee5ba8..35ca9fe442 100644 --- a/roles/mirrormanager/backend/files/backend.cron +++ b/roles/mirrormanager/backend/files/backend.cron @@ -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 diff --git a/roles/mirrormanager/backend/files/umdl-required b/roles/mirrormanager/backend/files/umdl-required index 2a695d3417..87d668303a 100644 --- a/roles/mirrormanager/backend/files/umdl-required +++ b/roles/mirrormanager/backend/files/umdl-required @@ -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