mirror of
https://github.com/coturn/coturn.git
synced 2025-05-14 09:36:49 +08:00
34 lines
481 B
Bash
Executable File
34 lines
481 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# CentOS7 preparation script.
|
|
|
|
CPWD=`pwd`
|
|
|
|
. ./common.pre.build.sh
|
|
|
|
cd ${CPWD}
|
|
|
|
# Common packs
|
|
|
|
PACKS="libevent-devel mariadb-devel sqlite sqlite-devel"
|
|
sudo yum -y install ${PACKS}
|
|
ER=$?
|
|
if ! [ ${ER} -eq 0 ] ; then
|
|
echo "Cannot install package(s) ${PACKS}"
|
|
cd ${CPWD}
|
|
exit -1
|
|
fi
|
|
|
|
# EPEL (for hiredis)
|
|
|
|
cd ${CPWD}
|
|
./epel7.install.sh
|
|
|
|
# Platform file
|
|
|
|
echo "CentOS7.4" > ${BUILDDIR}/platform
|
|
|
|
cp ${CPWD}/epel7.install.sh ${BUILDDIR}/install.sh
|
|
|
|
cd ${CPWD}
|