Browse Source

CentOS 7 setup updated

Oleg Moskalenko 9 years ago
parent
commit
1c802bf49a
3 changed files with 3 additions and 33 deletions
  1. 1 0
      ChangeLog
  2. 1 1
      rpm/CentOS7.pre.build.sh
  3. 1 32
      rpm/epel7.install.sh

+ 1 - 0
ChangeLog

@@ -1,6 +1,7 @@
 08/20/2016 Oleg Moskalenko <[email protected]>
 Version 4.5.0.4 'dan Eider':
 	- OpenSSL 1.1.0 support added.
+	- CentOS 7 installation updated.
 	- hiredis and mongo compilation configuration fixed
 	(fix provided by Harsha Bellur).
 	- RPM: Systemd optimization.

+ 1 - 1
rpm/CentOS7.pre.build.sh

@@ -26,7 +26,7 @@ cd ${CPWD}
  
 # Platform file
 
-echo "CentOS7.1" > ${BUILDDIR}/platform
+echo "CentOS7.2" > ${BUILDDIR}/platform
 
 cp ${CPWD}/epel7.install.sh ${BUILDDIR}/install.sh
 

+ 1 - 32
rpm/epel7.install.sh

@@ -1,39 +1,8 @@
 #!/bin/bash
 
-CPWD=`pwd`
-
 # Epel installation script
 
-EPEL=epel-release-7-6.noarch
-EPELRPM=${EPEL}.rpm
-BUILDDIR=~/rpmbuild
-WGETOPTIONS="--no-check-certificate"
-RPMOPTIONS="-ivh --force"
-
-mkdir -p ${BUILDDIR}
-mkdir -p ${BUILDDIR}/RPMS
-
-sudo yum -y install wget
-
-cd ${BUILDDIR}/RPMS
-if ! [ -f ${EPELRPM} ] ; then
-    wget ${WGETOPTIONS} http://download.fedoraproject.org/pub/epel/7/x86_64/e/${EPELRPM}
-    ER=$?
-    if ! [ ${ER} -eq 0 ] ; then
-	cd ${CPWD}
-	exit -1
-    fi
-fi
-
-PACK=${EPELRPM}
-sudo rpm ${RPMOPTIONS} ${PACK}
-ER=$?
-if ! [ ${ER} -eq 0 ] ; then
-    echo "Cannot install package ${PACK}"
-    cd ${CPWD}
-    exit -1
-fi
+sudo yum -y install epel-release
 
-cd ${CPWD}