Skip to content

Commit 0c2cd3f

Browse files
authored
Remove duplicated CentOS 7 mirrorlist update logic (#1586)
* Bump version from 2.5.6 to 2.5.7 * Remove duplicated CentOS 7 mirrorlist update logic Remove duplicated CentOS 7 mirrorlist handling introduced in this commit 52c79b4
1 parent 065b4d4 commit 0c2cd3f

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/common-utils/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "common-utils",
3-
"version": "2.5.6",
3+
"version": "2.5.7",
44
"name": "Common Utilities",
55
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/common-utils",
66
"description": "Installs a set of common command line utilities, Oh My Zsh!, and sets up a non-root user.",

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)