Skip to content

Commit

Permalink
fix: patch_yum_repo.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
aceforeverd committed Sep 26, 2024
1 parent c680dcb commit 233ff55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patch_yum_repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo

if [[ "$ARCH" = "aarch64" ]]; then
if [[ "$(arch)" = "aarch64" ]]; then
sed -i s/vault.centos.org\\/centos/vault.centos.org\\/altarch/g /etc/yum.repos.d/*.repo
fi

0 comments on commit 233ff55

Please sign in to comment.