File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 3434 chmod +x /usr/local/bin/git
3535}
3636
37+ if [[ " $pkgrelease " = rockylinux* ]]; then
38+ # disable mirrors for better stability
39+ for repo in /etc/yum.repos.d/* .repo; do
40+ sed -i \
41+ -e ' s/^\(mirrorlist=.*\)$/#\1/' \
42+ -e ' s/^#\(baseurl=.*\)$/\1/' \
43+ " $repo "
44+ done
45+ fi
46+
3747case " $pkgrelease " in
3848 centos9)
3949 rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Original file line number Diff line number Diff line change 2323
2424set -e
2525
26+ if [[ " $pkgrelease " = rockylinux* ]]; then
27+ # disable mirrors for better stability
28+ for repo in /etc/yum.repos.d/* .repo; do
29+ sed -i \
30+ -e ' s/^\(mirrorlist=.*\)$/#\1/' \
31+ -e ' s/^#\(baseurl=.*\)$/\1/' \
32+ " $repo "
33+ done
34+ fi
35+
2636case " $pkgrelease " in
2737 centos9)
2838 rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
You can’t perform that action at this time.
0 commit comments