forked from norman/fusionpbx-install.sh-github-mirror
* added CentOS, Fedora, RHEL choices with minimal version check (recommited) * fixed small typos * added special option --use-php5-package * parse options and export new environment variable USE_PHP5_PACKAGE * added choice between php5* or php7.0* packages (recommited) * fixed php*-fpm service name and php.ini file path (recommited) * prepare socket name for nginx to work with php5-fpm or php7.0-fpm (recommited) * added ppa:ondrej/php5-compat repo * added dependency ppa:ondrej/php repo and package software-properties-common * added execute permissions to ./centos/*.sh files
25 lines
816 B
Bash
Executable File
25 lines
816 B
Bash
Executable File
#!/bin/sh
|
|
|
|
#move to script directory so all relative paths work
|
|
cd "$(dirname "$0")"
|
|
|
|
. ../colors.sh
|
|
. ../arguments.sh
|
|
|
|
verbose "Installing FreeSWITCH"
|
|
|
|
yum -y install memcached curl gdb
|
|
yum install -y http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm
|
|
yum install -y freeswitch-config-vanilla freeswitch-lang-* freeswitch-sounds-* freeswitch-lua freeswitch-xml-cdr
|
|
|
|
##remove the music package to protect music on hold from package updates
|
|
mkdir -p /usr/share/freeswitch/sounds/temp
|
|
mv /usr/share/freeswitch/sounds/music/*000 /usr/share/freeswitch/sounds/temp
|
|
yum -y remove freeswitch-sounds-music
|
|
mkdir -p /usr/share/freeswitch/sounds/music/default
|
|
mv /usr/share/freeswitch/sounds/temp/* /usr/share/freeswitch/sounds/music/default
|
|
rm -R /usr/share/freeswitch/sounds/temp
|
|
|
|
verbose "FreeSWITCH installed"
|
|
|