File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-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 and use vault repos for better stability
39+ find /etc/yum.repos.d/ -name ' *.repo' -exec sed -i \
40+ -e ' s/^mirrorlist=.*$/#mirrorlist=disabled/' \
41+ -e " s|^#baseurl=.*$|baseurl=https://dl.rockylinux.org/vault/rocky/$( rpm -E %{rhel}) /BaseOS/\$ basearch/os/|" {} \;
42+ fi
43+
3744case " $pkgrelease " in
3845 centos9)
3946 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 and use vault repos for better stability
28+ find /etc/yum.repos.d/ -name ' *.repo' -exec sed -i \
29+ -e ' s/^mirrorlist=.*$/#mirrorlist=disabled/' \
30+ -e " s|^#baseurl=.*$|baseurl=https://dl.rockylinux.org/vault/rocky/$( rpm -E %{rhel}) /BaseOS/\$ basearch/os/|" {} \;
31+ fi
32+
2633case " $pkgrelease " in
2734 centos9)
2835 rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
You can’t perform that action at this time.
0 commit comments