mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update rhel.sh
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
|
||||
export PATH
|
||||
export LANG=en_US.UTF-8
|
||||
SYS_ARCH=`arch`
|
||||
|
||||
if [ ! -f /usr/bin/applydeltarpm ];then
|
||||
yum -y provides '*/applydeltarpm'
|
||||
@@ -28,6 +29,12 @@ if [ $VERSION_ID -ge 8 ];then
|
||||
PKGMGR='dnf'
|
||||
fi
|
||||
|
||||
# install remi source
|
||||
if [ $VERSION_ID -ge 8 ];then
|
||||
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-9.rpm
|
||||
rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi
|
||||
fi
|
||||
|
||||
#https need
|
||||
if [ ! -d /root/.acme.sh ];then
|
||||
curl https://get.acme.sh | sh
|
||||
@@ -120,9 +127,9 @@ $PKGMGR groupinstall -y "Development Tools"
|
||||
if [ $VERSION_ID -ge 8 ];then
|
||||
# EL8 及以上
|
||||
if [ $VERSION_ID -ge 9 ];then
|
||||
REPOS='--enablerepo=appstream,baseos,epel,extras,crb'
|
||||
REPOS='--enablerepo=remi,appstream,baseos,epel,extras,crb'
|
||||
else
|
||||
REPOS='--enablerepo=appstream,baseos,epel,extras,powertools'
|
||||
REPOS='--enablerepo=remi,appstream,baseos,epel,extras,powertools'
|
||||
fi
|
||||
|
||||
for rpms in gcc gcc-c++ lsof autoconf bzip2 bzip2-devel c-ares-devel \
|
||||
|
||||
Reference in New Issue
Block a user