Skip to content

Commit

Permalink
upt CentOS repo change from mirror to vault
Browse files Browse the repository at this point in the history
  • Loading branch information
sysnet4admin committed Jul 17, 2024
1 parent 30c13c8 commit cc5b771
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ch3/3.1.3/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ swapoff -a
sed -i.bak -r 's/(.+ swap .+)/#\1/' /etc/fstab

# CentOS repo change from mirror to vault
sed -i 's,mirrorlist.centos.org,vault.centos.org,g' /etc/yum.repos.d/CentOS-Base.repo
sed -i -e 's/mirrorlist=/#mirrorlist=/g' /etc/yum.repos.d/CentOS-*
sed -i -e 's/mirrorlist=/#mirrorlist=/g' /etc/yum.conf
sed -E -i -e 's/#baseurl=http:\/\/mirror.centos.org\/centos\/\$releasever\/([[:alnum:]_-]*)\/\$basearch\//baseurl=https:\/\/vault.centos.org\/7.9.2009\/\1\/\$basearch\//g' /etc/yum.repos.d/CentOS-*
sed -E -i -e 's/#baseurl=http:\/\/mirror.centos.org\/centos\/\$releasever\/([[:alnum:]_-]*)\/\$basearch\//baseurl=https:\/\/vault.centos.org\/7.9.2009\/\1\/\$basearch\//g' /etc/yum.conf

# kubernetes repo
gg_pkg="http://mirrors.aliyun.com/kubernetes/yum" # Due to shorten addr for key
Expand Down

0 comments on commit cc5b771

Please sign in to comment.