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
|
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
|
45 */2 * * * mirrormanager /usr/local/bin/umdl-required alt /var/log/mirrormanager/umdl-required.log
|
||||||
|
|
||||||
# check if category CentOS needs updating once a day
|
# check if category CentOS needs updating every two hours
|
||||||
15 20 * * * mirrormanager /usr/local/bin/umdl-required centos /var/log/mirrormanager/umdl-required.log
|
33 */2 * * * mirrormanager /usr/local/bin/umdl-required centos /var/log/mirrormanager/umdl-required.log
|
||||||
|
|
||||||
# Sync netblocks list once a day
|
# 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 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"
|
CATEGORY="Archive"
|
||||||
elif [ "${1}" == "codecs" ]; then
|
elif [ "${1}" == "codecs" ]; then
|
||||||
CATEGORY="Codecs"
|
CATEGORY="Codecs"
|
||||||
|
SCANNER="/usr/local/bin/scan-primary-mirror"
|
||||||
/usr/local/bin/lock-wrapper umdl-${1} "${SCANNER} --category \"Fedora ${CATEGORY}\""
|
/usr/local/bin/lock-wrapper umdl-${1} "${SCANNER} --category \"Fedora ${CATEGORY}\""
|
||||||
exit 0
|
exit 0
|
||||||
elif [ "${1}" == "centos" ]; then
|
elif [ "${1}" == "centos" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue