From c00ff8b529edc58be1465c8b56364b98f383d898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Fri, 13 Sep 2024 15:58:42 +0200 Subject: [PATCH] Reapply "MM: adjust primary-mirror-wrapper because ELN has only one version" With the bits we didn't want actually removed. This reverts commit 86b9fa42fe60c459cea96a4bdd9a0492becbba7a. --- .../mirrormanager/templates/primary-mirror-wrapper.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/openshift-apps/mirrormanager/templates/primary-mirror-wrapper.sh b/roles/openshift-apps/mirrormanager/templates/primary-mirror-wrapper.sh index a365cae89a..ede26ff61a 100644 --- a/roles/openshift-apps/mirrormanager/templates/primary-mirror-wrapper.sh +++ b/roles/openshift-apps/mirrormanager/templates/primary-mirror-wrapper.sh @@ -76,7 +76,11 @@ elif [ "${1}" == "codecs" ]; then FFTL="${CATEGORY}" FILEDATE=${CURDATE} else - FFTL="/srv/pub/${1}/fullfiletimelist-${1}" + if [ "${1}" == "eln" ]; then + FFTL="/srv/pub/${1}/1/fullfiletimelist-${1}" + else + FFTL="/srv/pub/${1}/fullfiletimelist-${1}" + fi FILEDATE=`stat -c %Z ${FFTL} 2> /dev/null` if [ "$?" -eq "1" ]; then