Skip to content

Commit 9e59430

Browse files
authored
Setting alternative mirror for centos7 runners (#655)
1 parent 28fe200 commit 9e59430

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

runner_manager/bin/startup.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,11 @@ function init {
195195
gnupg \
196196
lsb-release
197197
elif [[ ${LINUX_OS} == "centos" ]] || [[ ${LINUX_OS} == "rocky" ]] || [[ ${LINUX_OS} == "almalinux" ]]; then
198+
if [[ ${LINUX_OS_VERSION} == "7" ]]; then
199+
# CentOS 7 is EOL and mirrorlist does no longer exists
200+
# using another mirror as a temporary workaround
201+
sed -i 's/^mirrorlist=/#mirrorlist=/; s/^#baseurl=/baseurl=/; s/mirror\.centos\.org/vault\.centos\.org/' /etc/yum.repos.d/*.repo
202+
fi
198203
sudo yum install -y bind-utils yum-utils
199204
elif [[ ${LINUX_OS} == "rhel" ]]; then
200205
echo "

0 commit comments

Comments
 (0)