forked from norman/fusionpbx-install.sh-github-mirror
Work on the dependency version if statements.
This commit is contained in:
9
debian/resources/switch/source-release.sh
vendored
9
debian/resources/switch/source-release.sh
vendored
@@ -35,8 +35,9 @@ apt install -y sqlite3 unzip
|
|||||||
#we are about to move out of the executing directory so we need to preserve it to return after we are done
|
#we are about to move out of the executing directory so we need to preserve it to return after we are done
|
||||||
CWD=$(pwd)
|
CWD=$(pwd)
|
||||||
|
|
||||||
if [ $(echo "$switch_version" | tr -d '.') -gt 1103 ]
|
#install the following dependencies if the switch version is greater than 1.10.0
|
||||||
then
|
if [ $(echo "$switch_version" | tr -d '.') -gt 1100 ]; then
|
||||||
|
|
||||||
# libks build-requirements
|
# libks build-requirements
|
||||||
apt install -y cmake uuid-dev
|
apt install -y cmake uuid-dev
|
||||||
|
|
||||||
@@ -80,18 +81,22 @@ cd /usr/src
|
|||||||
#git clone -b v1.8 https://freeswitch.org/stash/scm/fs/freeswitch.git /usr/src/freeswitch
|
#git clone -b v1.8 https://freeswitch.org/stash/scm/fs/freeswitch.git /usr/src/freeswitch
|
||||||
|
|
||||||
#1.8 and older
|
#1.8 and older
|
||||||
|
if [ $(echo "$switch_version" | tr -d '.') -lt 1100 ]; then
|
||||||
#wget http://files.freeswitch.org/freeswitch-releases/freeswitch-$switch_version.zip
|
#wget http://files.freeswitch.org/freeswitch-releases/freeswitch-$switch_version.zip
|
||||||
#rm -R freeswitch
|
#rm -R freeswitch
|
||||||
#unzip freeswitch-$switch_version.zip
|
#unzip freeswitch-$switch_version.zip
|
||||||
#mv freeswitch-$switch_version freeswitch
|
#mv freeswitch-$switch_version freeswitch
|
||||||
#cd /usr/src/freeswitch
|
#cd /usr/src/freeswitch
|
||||||
|
end
|
||||||
|
|
||||||
#1.10.0 and newer
|
#1.10.0 and newer
|
||||||
|
if [ $(echo "$switch_version" | tr -d '.') -gt 1100 ]; then
|
||||||
wget http://files.freeswitch.org/freeswitch-releases/freeswitch-$switch_version.-release.zip
|
wget http://files.freeswitch.org/freeswitch-releases/freeswitch-$switch_version.-release.zip
|
||||||
unzip freeswitch-$switch_version.-release.zip
|
unzip freeswitch-$switch_version.-release.zip
|
||||||
rm -R freeswitch
|
rm -R freeswitch
|
||||||
mv freeswitch-$switch_version.-release freeswitch
|
mv freeswitch-$switch_version.-release freeswitch
|
||||||
cd /usr/src/freeswitch
|
cd /usr/src/freeswitch
|
||||||
|
fi
|
||||||
|
|
||||||
# bootstrap is needed if using git
|
# bootstrap is needed if using git
|
||||||
#./bootstrap.sh -j
|
#./bootstrap.sh -j
|
||||||
|
|||||||
Reference in New Issue
Block a user