| |
@@ -30,6 +30,19 @@
|
| |
CATEGORY="Archive"
|
| |
elif [ "${1}" == "codecs" ]; then
|
| |
CATEGORY="Codecs"
|
| |
+ /usr/local/bin/lock-wrapper umdl-${1} "${SCANNER} --category \"Fedora ${CATEGORY}\""
|
| |
+ exit 0
|
| |
+ elif [ "${1}" == "centos" ]; then
|
| |
+ CATEGORY="CentOS"
|
| |
+ SCANNER="/usr/local/bin/scan-primary-mirror -c /etc/mirrormanager/scan-primary-mirror-centos.toml"
|
| |
+ /usr/local/bin/lock-wrapper umdl-${1} "${SCANNER} --category \"${CATEGORY}\""
|
| |
+ if [ "$?" -eq "0" ]; then
|
| |
+ echo -n "Finished umdl for ${CATEGORY} successfully at "
|
| |
+ else
|
| |
+ echo -n "${SCANNER} for ${CATEGORY} returned non-zero. Something failed. Please check umdl.log. "
|
| |
+ fi
|
| |
+ date
|
| |
+ exit 0
|
| |
fi
|
| |
|
| |
if [ -e /var/run/mirrormanager/umdl-${1} ]; then
|
| |
@@ -39,13 +52,7 @@
|
| |
let LASTRUN=CURDATE-86400
|
| |
fi
|
| |
|
| |
- # FULLFILETIMELIST -> FFTL
|
| |
- if [ "${1}" == "codecs" ]; then
|
| |
- /usr/local/bin/lock-wrapper umdl-${1} "${SCANNER} --category \"Fedora ${CATEGORY}\""
|
| |
- exit 0
|
| |
- else
|
| |
- FFTL="/srv/pub/${1}/fullfiletimelist-${1}"
|
| |
- fi
|
| |
+ FFTL="/srv/pub/${1}/fullfiletimelist-${1}"
|
| |
FILEDATE=`stat -c %Z ${FFTL} 2> /dev/null`
|
| |
|
| |
if [ "$?" -eq "1" ]; then
|
| |
In addition to configuration file changes this also needs the latest
version of MirrorManager, scan-primary-mirror and mirrorlist-server.
The reason for the software updates are mainly that CentOS Stream is
using an empty topdir ('') and all around the code there were
assumptions that topdir always ends with a slash and an empty string
does not end with a slash.