forked from norman/fusionpbx-install.sh-github-mirror
Update source-master.sh
This commit is contained in:
@@ -6,6 +6,9 @@ cd "$(dirname "$0")"
|
||||
#includes
|
||||
. ../config.sh
|
||||
|
||||
#set the current working directory
|
||||
cwd=$(pwd)
|
||||
|
||||
#send a message
|
||||
echo "Installing the FreeSWITCH source"
|
||||
|
||||
@@ -21,7 +24,6 @@ rehash
|
||||
|
||||
#get the source
|
||||
git clone https://freeswitch.org/stash/scm/fs/freeswitch.git /usr/src/freeswitch
|
||||
cd /usr/src/freeswitch
|
||||
|
||||
#prepare the source
|
||||
cd /usr/src/freeswitch && /bin/sh /usr/src/freeswitch/bootstrap.sh -j
|
||||
@@ -49,9 +51,12 @@ gmake uhd-sounds-install uhd-sounds-install
|
||||
mkdir -p /usr/local/freeswitch/sounds/music/default
|
||||
mv /usr/local/freeswitch/sounds/music/*000 /usr/local/freeswitch/sounds/music/default
|
||||
|
||||
#set the original working directory
|
||||
cd $cwd
|
||||
|
||||
#configure system service
|
||||
ln -s /usr/local/freeswitch/bin/fs_cli /usr/bin/fs_cli
|
||||
cp switch/rc.d.freeswitch /usr/local/etc/rc.d/freeswitch
|
||||
cp "$(dirname $0)/rc.d.freeswitch /usr/local/etc/rc.d/freeswitch
|
||||
chmod u-w,ugo+x /usr/local/etc/rc.d/freeswitch
|
||||
|
||||
#enable the service
|
||||
|
||||
Reference in New Issue
Block a user