mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/boypt/openssh-rpms.git
synced 2026-09-20 08:03:38 +08:00
fix(docker): use HTTP aliyun EPEL for el5 to avoid Python2.4 HTTPS redirect (302)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user