Skip to content

Commit

Permalink
Fix install-dependencies.sh for CentOS 8 (#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
smola committed Feb 13, 2021
1 parent ac70160 commit a57521e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions install-dependencies.sh
@@ -1,5 +1,9 @@
#!/bin/sh
set -e
set -eu

if [ -f /etc/os-release ]; then
. /etc/os-release
fi

if [ -f /etc/debian_version ]; then
DISTRO=debian
Expand Down Expand Up @@ -58,7 +62,12 @@ case $DISTRO in
;;
rhel)
$SUDO yum install -y yum-utils epel-release
$SUDO yum-config-manager --enable PowerTools
if [ ${VERSION_ID:-0} -lt 8 ]; then
$SUDO yum-config-manager --enable PowerTools
else
$SUDO yum install -y dnf-plugins-core
$SUDO yum config-manager --set-enabled powertools
fi
$SUDO yum install -y \
autoconf \
autoconf213 \
Expand Down

0 comments on commit a57521e

Please sign in to comment.