forked from noobaa/noobaa-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix default repos for centos8 (noobaa#8113)
Signed-off-by: Amit Prinz Setter <aprinzse@li-56a4e0cc-353c-11b2-a85c-9bc45442ed4b.ibm.com> Co-authored-by: Amit Prinz Setter <aprinzse@li-56a4e0cc-353c-11b2-a85c-9bc45442ed4b.ibm.com> (cherry picked from commit f9a3444)
- Loading branch information
1 parent
f79c905
commit c92cefe
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
if [ "$CENTOS_VER" == "8" ]; then | ||
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* | ||
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* | ||
fi |