Skip to content

Commit

Permalink
Setting alternative mirror for centos7 runners (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmet authored Jul 22, 2024
1 parent 28fe200 commit 9e59430
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions runner_manager/bin/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ function init {
gnupg \
lsb-release
elif [[ ${LINUX_OS} == "centos" ]] || [[ ${LINUX_OS} == "rocky" ]] || [[ ${LINUX_OS} == "almalinux" ]]; then
if [[ ${LINUX_OS_VERSION} == "7" ]]; then
# CentOS 7 is EOL and mirrorlist does no longer exists
# using another mirror as a temporary workaround
sed -i 's/^mirrorlist=/#mirrorlist=/; s/^#baseurl=/baseurl=/; s/mirror\.centos\.org/vault\.centos\.org/' /etc/yum.repos.d/*.repo
fi
sudo yum install -y bind-utils yum-utils
elif [[ ${LINUX_OS} == "rhel" ]]; then
echo "
Expand Down

0 comments on commit 9e59430

Please sign in to comment.