From 2bdda44febb040447bcf7c853020b33112bf92df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Fri, 23 Feb 2024 11:56:33 +0100 Subject: [PATCH] MM: Fix dir perms MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aurélien Bompard --- .../mirrormanager/templates/update-mirrorlist-cache.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/openshift-apps/mirrormanager/templates/update-mirrorlist-cache.sh b/roles/openshift-apps/mirrormanager/templates/update-mirrorlist-cache.sh index 9760c192cf..cc1970696e 100644 --- a/roles/openshift-apps/mirrormanager/templates/update-mirrorlist-cache.sh +++ b/roles/openshift-apps/mirrormanager/templates/update-mirrorlist-cache.sh @@ -9,7 +9,8 @@ set -x rm -rf ${CACHEDIR}/old mkdir -p ${CACHEDIR}/old -cp -ar ${CACHEDIR}/* ${CACHEDIR}/old/ 2>/dev/null +chmod g+w ${CACHEDIR}/old +cp -ar ${CACHEDIR}/*.* ${CACHEDIR}/old/ ${MM_ROOT}/bin/generate-mirrorlist-cache -o ${CACHEDIR}/mirrorlist_cache.proto