BugFix-source-release

source-release was cding out of the base dir so was causing following
commands to fail as they were no longer correctly relative
Added store and return for the working directory
This commit is contained in:
mafoo 2016-07-05 10:50:59 +01:00
parent 3bf249ac43
commit d65b59ba23
1 changed files with 5 additions and 0 deletions

View File

@ -9,6 +9,8 @@ echo "deb http://files.freeswitch.org/repo/deb/freeswitch-1.6/ jessie main" > /e
apt-get update && apt-get upgrade
apt-get install -y --force-yes freeswitch-video-deps-most
#we are about to move out of the executing directory so we need to preserve it to return after we are done
CWD=$(pwd)
#git clone https://freeswitch.org/stash/scm/fs/freeswitch.git /usr/src/freeswitch
#git clone -b v1.6 https://freeswitch.org/stash/scm/fs/freeswitch.git /usr/src/freeswitch
cd /usr/src && wget http://files.freeswitch.org/freeswitch-releases/freeswitch-1.6.9.zip
@ -35,6 +37,9 @@ make sounds-install moh-install
make hd-sounds-install hd-moh-install
make cd-sounds-install cd-moh-install
#return to the executing directory
cd $CWD
useradd freeswitch
#configure system service