Update rhel.sh

pull/597/head
Mr Chen 11 months ago
parent cb2883646d
commit 752152fb56
  1. 11
      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:]]\+' ` 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) isStream=$(grep -o -i 'stream' /etc/redhat-release)
@ -33,12 +26,14 @@ if [ ! -z "$stream" ];then
dnf upgrade -y libmodulemd dnf upgrade -y libmodulemd
fi fi
PKGMGR='yum' PKGMGR='yum'
if [ $VERSION_ID -ge 8 ];then if [ $VERSION_ID -ge 8 ];then
PKGMGR='dnf' PKGMGR='dnf'
fi fi
$PKGMGR install -y curl-devel libmcrypt libmcrypt-devel python3-devel
$PKGMGR install -y libncurses*
echo "install remi source" echo "install remi source"
if [ "$VERSION_ID" == "9" ];then if [ "$VERSION_ID" == "9" ];then
# dnf upgrade --refresh -y # dnf upgrade --refresh -y

Loading…
Cancel
Save