aligned to install for rhel derivatives

This commit is contained in:
Phil Clifford 2022-08-12 12:48:48 +01:00
parent f511867dc8
commit 54944d2014

View File

@ -65,7 +65,7 @@ if [ "${ID}" = "debian" ] || [ "$OS" = "Ubuntu" ] || [ "$OS" = "Debian" ] || [
prereq+=" dnsutils"
sudo apt-get update
sudo apt-get install -y "${prereq}" # git
elif [ "$OS" = "CentOS" ] || [ "$OS" = "RedHat" ]; then
elif [ "$OS" = "CentOS" ] || [ "$OS" = "RedHat" ] || [ "${UPSTREAM_ID}" = "rhel" ]; then
prereq+=" bind-utils"
sudo yum update -y
sudo yum install -y "${prereq}" # git
@ -107,4 +107,3 @@ rm gohttpserver_${GOHTTPLATEST}_linux_amd64.tar.gz
sudo systemctl start gohttpserver.service
echo -e "Updates are complete"