fusionpbx-install.sh/centos/resources/switch/package-release.sh

31 lines
923 B
Bash
Raw Normal View History

2017-02-23 17:53:37 +01:00
#!/bin/sh
#move to script directory so all relative paths work
cd "$(dirname "$0")"
2017-04-23 10:10:09 +02:00
#includes
. ../config.sh
2017-02-23 17:53:37 +01:00
. ../colors.sh
. ../arguments.sh
2017-04-23 10:10:09 +02:00
#send a message
2017-02-23 17:53:37 +01:00
verbose "Installing FreeSWITCH"
2017-04-23 10:10:09 +02:00
#install dependencies
2017-02-23 17:53:37 +01:00
yum -y install memcached curl gdb
2017-04-23 10:10:09 +02:00
#install freeswitch packages
2017-02-23 17:53:37 +01:00
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
2017-04-23 10:10:09 +02:00
#remove the music package to protect music on hold from package updates
2017-02-23 17:53:37 +01:00
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
2017-04-23 10:10:09 +02:00
#send a message
2017-02-23 17:53:37 +01:00
verbose "FreeSWITCH installed"