This commit is contained in:
Super Manito
2025-04-29 11:47:50 +08:00
parent 29cff2716b
commit d6d1cd26d9

View File

@@ -2113,6 +2113,7 @@ function change_mirrors_RedHat() {
## 使用官方源 ## 使用官方源
if [[ "${USE_OFFICIAL_SOURCE}" == "true" ]]; then if [[ "${USE_OFFICIAL_SOURCE}" == "true" ]]; then
## CentOS 停服专用 ## CentOS 停服专用
cd $Dir_YumRepos
if [[ "${SYSTEM_JUDGMENT}" == "${SYSTEM_CENTOS}" ]]; then if [[ "${SYSTEM_JUDGMENT}" == "${SYSTEM_CENTOS}" ]]; then
sed -i "s|^#baseurl=http|baseurl=${WEB_PROTOCOL}|g" CentOS-* sed -i "s|^#baseurl=http|baseurl=${WEB_PROTOCOL}|g" CentOS-*
sed -i 's|^mirrorlist=|#mirrorlist=|g' CentOS-* sed -i 's|^mirrorlist=|#mirrorlist=|g' CentOS-*