MM: try to fix the primary mirror scanning

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard
2024-02-28 12:01:29 +01:00
parent 33ebd24bc5
commit 8e4e28c339
3 changed files with 10 additions and 0 deletions

View File

@@ -4,5 +4,8 @@ LABEL \
vendor="Fedora Infrastructure" \
license="MIT"
USER root
# Add RPM-only modules
RUN dnf install -y python3-pyrpmmd
# Add Rust
RUN dnf install -y cargo
USER 1001

View File

@@ -52,4 +52,6 @@ spec:
- name: mirror-archive
persistentVolumeClaim:
claimName: primary-mirror-archive
securityContext:
supplementalGroups: [1001280000]
{% endfor %}

View File

@@ -56,6 +56,11 @@ if [ "${1}" == "centos" ]; then
date
exit 0
fi
if [ "${CODE}" -eq "000" ]; then
echo -n "CentOS primary mirror is unreachable. Skipping scan at "
date
exit 1
fi
FFTL="http://${CENTOS_PRIMARY}/9-stream/COMPOSE_ID"
FILEDATE=`date +%s -d"$( curl -s --head ${FFTL} | awk 'BEGIN {FS=": "}/^Last-Modified/{print $2}' )"`
FFTL_SIGS="http://${CENTOS_PRIMARY}/SIGs/9-stream/COMPOSE_ID"