From 116e7ec791e5d3f9f8a1df2a10fb835fcfbd36ee Mon Sep 17 00:00:00 2001 From: boypt <1033514+boypt@users.noreply.github.com> Date: Thu, 20 Aug 2026 16:38:52 +0800 Subject: [PATCH] fix(docker): use HTTP aliyun EPEL for el5 to avoid Python2.4 HTTPS redirect (302) --- docker/modify_yum_source.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/modify_yum_source.sh b/docker/modify_yum_source.sh index 601bd47..66efb8a 100644 --- a/docker/modify_yum_source.sh +++ b/docker/modify_yum_source.sh @@ -19,12 +19,13 @@ if [ "$RELEASE_VER" != ".el5" ]; then EPEL_MIRROR="http://archives.fedoraproject.org/pub/archive/epel" fi else + # EL5 Python 2.4 cannot handle HTTPS redirects, use HTTP mirrors only if [ "$MIRROR" != "0" ]; then CENTOS_MIRROR="http://archive.kernel.org/centos-vault" EPEL_MIRROR="http://mirrors.aliyun.com/epel-archive" else CENTOS_MIRROR="http://archive.kernel.org/centos-vault" - EPEL_MIRROR="http://archives.fedoraproject.org/pub/archive/epel" + EPEL_MIRROR="http://mirrors.aliyun.com/epel-archive" fi fi