Skip to content

Commit cd90859

Browse files
committed
Remove duplicated CentOS 7 mirrorlist update logic
Remove duplicated CentOS 7 mirrorlist handling introduced in this commit 52c79b4
1 parent b35b810 commit cd90859

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

src/common-utils/main.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -378,14 +378,6 @@ if [ "${ADJUSTED_ID}" = "rhel" ] && [ "${VERSION_CODENAME-}" = "centos7" ]; then
378378
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
379379
fi
380380

381-
if [ "${ADJUSTED_ID}" = "rhel" ] && [ "${VERSION_CODENAME-}" = "centos7" ]; then
382-
# As of 1 July 2024, mirrorlist.centos.org no longer exists.
383-
# Update the repo files to reference vault.centos.org.
384-
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
385-
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
386-
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
387-
fi
388-
389381
# Install packages for appropriate OS
390382
case "${ADJUSTED_ID}" in
391383
"debian")

0 commit comments

Comments
 (0)