Skip to content

Commit

Permalink
Merge pull request #448 from singhsegv/fix/yum
Browse files Browse the repository at this point in the history
Broken yum config-manager command on CentOS 7
  • Loading branch information
thaJeztah authored Sep 24, 2024
2 parents 596f30d + 83b23ce commit 6d51e2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -584,11 +584,11 @@ do_install() {
$sh_c "dnf makecache"
else
$sh_c "yum -y -q install yum-utils"
$sh_c "yum config-manager --add-repo $repo_file_url"
$sh_c "yum-config-manager --add-repo $repo_file_url"

if [ "$CHANNEL" != "stable" ]; then
$sh_c "yum config-manager --disable \"docker-ce-*\""
$sh_c "yum config-manager --enable \"docker-ce-$CHANNEL\""
$sh_c "yum-config-manager --disable \"docker-ce-*\""
$sh_c "yum-config-manager --enable \"docker-ce-$CHANNEL\""
fi
$sh_c "yum makecache"
fi
Expand Down

0 comments on commit 6d51e2c

Please sign in to comment.