Skip to content

Commit

Permalink
feat: 将限速的阿里云镜像更换为腾讯云镜像
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Oct 16, 2023
1 parent 97562f1 commit 22b9b7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/install_panel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ Prepare_System() {
if [ "${OS}" == "centos" ]; then
if ${inChina}; then
sed -e 's|^mirrorlist=|#mirrorlist=|g' \
-e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirrors.aliyun.com/rockylinux|g' \
-e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirrors.cloud.tencent.com/rocky|g' \
-i.bak \
/etc/yum.repos.d/[Rr]ocky*.repo
sed -e 's|^mirrorlist=|#mirrorlist=|g' \
-e 's|^# baseurl=https://repo.almalinux.org|baseurl=https://mirrors.aliyun.com|g' \
-e 's|^# baseurl=https://repo.almalinux.org|baseurl=https://mirrors.cloud.tencent.com|g' \
-i.bak \
/etc/yum.repos.d/[Aa]lmalinux*.repo

Expand Down

0 comments on commit 22b9b7f

Please sign in to comment.