1
0

CentOS7.pre.build.sh 481 B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/bash
  2. # CentOS7 preparation script.
  3. CPWD=`pwd`
  4. . ./common.pre.build.sh
  5. cd ${CPWD}
  6. # Common packs
  7. PACKS="libevent-devel mariadb-devel sqlite sqlite-devel"
  8. sudo yum -y install ${PACKS}
  9. ER=$?
  10. if ! [ ${ER} -eq 0 ] ; then
  11. echo "Cannot install package(s) ${PACKS}"
  12. cd ${CPWD}
  13. exit -1
  14. fi
  15. # EPEL (for hiredis)
  16. cd ${CPWD}
  17. ./epel7.install.sh
  18. # Platform file
  19. echo "CentOS7.4" > ${BUILDDIR}/platform
  20. cp ${CPWD}/epel7.install.sh ${BUILDDIR}/install.sh
  21. cd ${CPWD}