Skip to content

Commit 2241429

Browse files
authored
Merge pull request #285 from crazy-max/rockylinux-vault
rockylinux: disable mirrors for better stability
2 parents f7f5b6a + 40362b4 commit 2241429

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

hack/scripts/rpm-init.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ EOF
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+
3747
case "$pkgrelease" in
3848
centos9)
3949
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

hack/scripts/verify-rpm-init.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ fi
2323

2424
set -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+
2636
case "$pkgrelease" in
2737
centos9)
2838
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

0 commit comments

Comments
 (0)