mirror of
https://gitee.com/SuperManito/LinuxMirrors
synced 2025-11-06 01:10:27 +08:00
bug fix
This commit is contained in:
@@ -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-*
|
||||||
|
|||||||
Reference in New Issue
Block a user