mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-11 10:32:27 +08:00
MM: try to fix the primary mirror scanning
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -52,4 +52,6 @@ spec:
|
||||
- name: mirror-archive
|
||||
persistentVolumeClaim:
|
||||
claimName: primary-mirror-archive
|
||||
securityContext:
|
||||
supplementalGroups: [1001280000]
|
||||
{% endfor %}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user