FBR: MM sync setup for openh264
Signed-off-by: Mohan Boddu <mboddu@bhujji.com>
This commit is contained in:
parent
103f2f4653
commit
0e779474dd
2 changed files with 10 additions and 2 deletions
|
@ -14,6 +14,8 @@ MAILTO=root
|
|||
10,40 * * * * mirrormanager /usr/local/bin/umdl-required fedora /var/log/mirrormanager/umdl-required.log
|
||||
# check if category Fedora Secondary Arches needs updating every 30 minutes
|
||||
20,50 * * * * mirrormanager /usr/local/bin/umdl-required fedora-secondary /var/log/mirrormanager/umdl-required.log
|
||||
# check if category Fedora Codecs needs updating once a day
|
||||
15 20 * * * mirrormanager /usr/local/bin/umdl-required codecs /var/log/mirrormanager/umdl-required.log
|
||||
# the remaining categories are updated every two hours
|
||||
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
|
||||
|
|
|
@ -21,6 +21,8 @@ elif [ "${1}" == "fedora-secondary" ]; then
|
|||
CATEGORY="Secondary Arches"
|
||||
elif [ "${1}" == "archive" ]; then
|
||||
CATEGORY="Archive"
|
||||
elif [ "${1}" == "codecs" ]; then
|
||||
CATEGORY="Codecs"
|
||||
fi
|
||||
|
||||
if [ -e /var/run/mirrormanager/umdl-${1} ]; then
|
||||
|
@ -31,8 +33,12 @@ else
|
|||
fi
|
||||
|
||||
# FULLFILETIMELIST -> FFTL
|
||||
FFTL="/srv/pub/${1}/fullfiletimelist-${1}"
|
||||
|
||||
if [ "${1}" == "codecs" ]; then
|
||||
/usr/local/bin/lock-wrapper umdl-${1} "/usr/bin/mm2_update-master-directory-list --category \"Fedora ${CATEGORY}\""
|
||||
exit 0
|
||||
else
|
||||
FFTL="/srv/pub/${1}/fullfiletimelist-${1}"
|
||||
fi
|
||||
FILEDATE=`stat -c %Z ${FFTL} 2> /dev/null`
|
||||
|
||||
if [ "$?" -eq "1" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue