From 22dd8166d3d7459aba4970b8c0018963835cc2e6 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 25 Nov 2016 13:58:10 -0700 Subject: [PATCH] Update fusionpbx.sh Fix the install so that it defaults to the stable branch again. --- debian/resources/fusionpbx.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/debian/resources/fusionpbx.sh b/debian/resources/fusionpbx.sh index fbadfea..2edf18a 100755 --- a/debian/resources/fusionpbx.sh +++ b/debian/resources/fusionpbx.sh @@ -13,15 +13,15 @@ verbose "Installing FusionPBX" apt-get install -y --force-yes vim git dbus haveged ssl-cert apt-get install -y --force-yes ghostscript libtiff5-dev libtiff-tools -if [ $USE_SYSTEM_MASTER == false ]; then +if [ $USE_SYSTEM_MASTER == true ]; then + verbose "Using master" + BRANCH="" +else FUSION_MAJOR=$(git ls-remote --heads https://github.com/fusionpbx/fusionpbx.git | cut -d/ -f 3 | grep -P '^\d+\.\d+' | sort | tail -n 1 | cut -d. -f1) FUSION_MINOR=$(git ls-remote --tags https://github.com/fusionpbx/fusionpbx.git $FUSION_MAJOR.* | cut -d/ -f3 | grep -P '^\d+\.\d+' | sort | tail -n 1 | cut -d. -f2) FUSION_VERSION=$FUSION_MAJOR.$FUSION_MINOR verbose "Using version $FUSION_VERSION" BRANCH="-b $FUSION_VERSION" -else - verbose "Using master" - BRANCH="" fi #get the source code