parent
76be73890e
commit
61325d53b4
|
|
@ -13,7 +13,7 @@ verbose "Installing FusionPBX"
|
||||||
apt-get install -y --force-yes vim git dbus haveged ssl-cert
|
apt-get install -y --force-yes vim git dbus haveged ssl-cert
|
||||||
apt-get install -y --force-yes ghostscript libtiff5-dev libtiff-tools
|
apt-get install -y --force-yes ghostscript libtiff5-dev libtiff-tools
|
||||||
|
|
||||||
if [ $USE_SYSTEM_MASTER = false ]; then
|
if [ $USE_SYSTEM_MASTER == false ]; then
|
||||||
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_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_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
|
FUSION_VERSION=$FUSION_MAJOR.$FUSION_MINOR
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue