From 752152fb56eac64a079831ef1fa046c98143d9a8 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 10 Jun 2024 12:54:38 +0800 Subject: [PATCH] Update rhel.sh --- scripts/install/rhel.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/scripts/install/rhel.sh b/scripts/install/rhel.sh index 4473e289d..bbea09d13 100644 --- a/scripts/install/rhel.sh +++ b/scripts/install/rhel.sh @@ -14,13 +14,6 @@ sed -i 's#SELINUX=enforcing#SELINUX=disabled#g' /etc/selinux/config VERSION_ID=`grep -o -i 'release *[[:digit:]]\+\.*' /etc/redhat-release | grep -o '[[:digit:]]\+' ` -if [ $VERSION_ID == '7' ]; then - yum install -y curl-devel libmcrypt libmcrypt-devel python3-devel - yum install -y libncurses* -else - dnf install -y curl-devel libmcrypt libmcrypt-devel python36-devel - dnf install -y libncurses* -fi isStream=$(grep -o -i 'stream' /etc/redhat-release) @@ -33,12 +26,14 @@ if [ ! -z "$stream" ];then dnf upgrade -y libmodulemd fi - PKGMGR='yum' if [ $VERSION_ID -ge 8 ];then PKGMGR='dnf' fi +$PKGMGR install -y curl-devel libmcrypt libmcrypt-devel python3-devel +$PKGMGR install -y libncurses* + echo "install remi source" if [ "$VERSION_ID" == "9" ];then # dnf upgrade --refresh -y