Update source-release.sh
This commit is contained in:
parent
44abf8b064
commit
ec4b9f003a
|
|
@ -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 -b v1.6 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
|
||||
|
|
|
|||
Loading…
Reference in New Issue