mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/boypt/openssh-rpms.git
synced 2026-09-20 08:03:38 +08:00
fix(docker): drop archives.fedoraproject.org from EPEL to avoid el5 https redirect
This commit is contained in:
@@ -46,10 +46,12 @@ VAULT_HTTP=(
|
|||||||
"http://ftp.yandex.ru/centos"
|
"http://ftp.yandex.ru/centos"
|
||||||
"http://ftp.pasteur.fr/mirrors/centos-vault"
|
"http://ftp.pasteur.fr/mirrors/centos-vault"
|
||||||
)
|
)
|
||||||
# EPEL archive mirrors (plain HTTP for all EL, 7/6/5 share)
|
# EPEL archive mirrors (plain HTTP for all EL, 7/6/5 share).
|
||||||
|
# archives.fedoraproject.org is excluded: it 302-redirects http->https, which
|
||||||
|
# EL5 Python 2.4 / M2Crypto cannot follow (uncaught SSLError aborts yum before
|
||||||
|
# mirror failover). All remaining mirrors serve plain HTTP without redirect.
|
||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
EPEL=(
|
EPEL=(
|
||||||
"http://archives.fedoraproject.org/pub/archive/epel"
|
|
||||||
"http://mirrors.aliyun.com/epel-archive"
|
"http://mirrors.aliyun.com/epel-archive"
|
||||||
"http://ftp.iij.ad.jp/pub/linux/Fedora/archive/epel"
|
"http://ftp.iij.ad.jp/pub/linux/Fedora/archive/epel"
|
||||||
"http://mirrors.sindad.cloud/epel-archive"
|
"http://mirrors.sindad.cloud/epel-archive"
|
||||||
@@ -185,20 +187,20 @@ modify_el5() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
case $RELEASE_VER in
|
case $RELEASE_VER in
|
||||||
.el7)
|
.el7)
|
||||||
modify_el7
|
modify_el7
|
||||||
;;
|
;;
|
||||||
.el6)
|
.el6)
|
||||||
modify_el6
|
modify_el6
|
||||||
;;
|
;;
|
||||||
.el5)
|
.el5)
|
||||||
modify_el5
|
modify_el5
|
||||||
;;
|
;;
|
||||||
.el8)
|
.el8)
|
||||||
modify_el8
|
modify_el8
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unsupported dist: $RELEASE_VER, expected el5/el6/el7/el8"
|
echo "Unsupported dist: $RELEASE_VER, expected el5/el6/el7/el8"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user