forked from norman/fusionpbx-install.sh-github-mirror
Update package-release.sh
This commit is contained in:
@@ -3,16 +3,22 @@
|
|||||||
#move to script directory so all relative paths work
|
#move to script directory so all relative paths work
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
#includes
|
||||||
|
. ../config.sh
|
||||||
. ../colors.sh
|
. ../colors.sh
|
||||||
. ../arguments.sh
|
. ../arguments.sh
|
||||||
|
|
||||||
|
#send a message
|
||||||
verbose "Installing FreeSWITCH"
|
verbose "Installing FreeSWITCH"
|
||||||
|
|
||||||
|
#install dependencies
|
||||||
yum -y install memcached curl gdb
|
yum -y install memcached curl gdb
|
||||||
|
|
||||||
|
#install freeswitch packages
|
||||||
yum install -y http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm
|
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
|
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
|
#remove the music package to protect music on hold from package updates
|
||||||
mkdir -p /usr/share/freeswitch/sounds/temp
|
mkdir -p /usr/share/freeswitch/sounds/temp
|
||||||
mv /usr/share/freeswitch/sounds/music/*000 /usr/share/freeswitch/sounds/temp
|
mv /usr/share/freeswitch/sounds/music/*000 /usr/share/freeswitch/sounds/temp
|
||||||
yum -y remove freeswitch-sounds-music
|
yum -y remove freeswitch-sounds-music
|
||||||
@@ -20,5 +26,5 @@ mkdir -p /usr/share/freeswitch/sounds/music/default
|
|||||||
mv /usr/share/freeswitch/sounds/temp/* /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
|
rm -R /usr/share/freeswitch/sounds/temp
|
||||||
|
|
||||||
|
#send a message
|
||||||
verbose "FreeSWITCH installed"
|
verbose "FreeSWITCH installed"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user