From 310c29d407359e369ad001d36fa1b4d43ae8406f Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 6 Jul 2017 10:08:13 -0600 Subject: [PATCH] Update source-release.sh --- debian/resources/switch/source-release.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/debian/resources/switch/source-release.sh b/debian/resources/switch/source-release.sh index 85103a0..2c4c820 100755 --- a/debian/resources/switch/source-release.sh +++ b/debian/resources/switch/source-release.sh @@ -12,13 +12,13 @@ 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 -SWITCH_MAJOR=$(git ls-remote --heads https://freeswitch.org/stash/scm/fs/freeswitch.git "v*" | cut -d/ -f 3 | grep -P '^v\d+\.\d+' | sort | tail -n 1| cut -dv -f2) -SWITCH_MINOR=$(git ls-remote --tags https://freeswitch.org/stash/scm/fs/freeswitch.git v$SWITCH_MAJOR.* | cut -d/ -f3 | cut -dv -f2 | cut -d. -f3 | sort -n | tail -n1) -SWITCH_VERSION=$SWITCH_MAJOR.$SWITCH_MINOR +#SWITCH_MAJOR=$(git ls-remote --heads https://freeswitch.org/stash/scm/fs/freeswitch.git "v*" | cut -d/ -f 3 | grep -P '^v\d+\.\d+' | sort | tail -n 1| cut -dv -f2) +#SWITCH_MINOR=$(git ls-remote --tags https://freeswitch.org/stash/scm/fs/freeswitch.git v$SWITCH_MAJOR.* | cut -d/ -f3 | cut -dv -f2 | cut -d. -f3 | sort -n | tail -n1) +#SWITCH_VERSION=$SWITCH_MAJOR.$SWITCH_MINOR +SWITCH_VERSION=1.6.18 echo "Using version $SWITCH_VERSION" cd /usr/src +#git clone -b v1.6 https://freeswitch.org/stash/scm/fs/freeswitch.git /usr/src/freeswitch wget http://files.freeswitch.org/freeswitch-releases/freeswitch-$SWITCH_VERSION.zip unzip freeswitch-$SWITCH_VERSION.zip rm -R freeswitch