forked from norman/fusionpbx-install.sh-github-mirror
update fusionpbx git repo location.
This commit is contained in:
@@ -24,8 +24,8 @@ if [ .$system_branch = .'master' ]; 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_MAJOR=$(git ls-remote --heads https://$GIT_EMAIL:$GIT_PASSWORD@git.nsinnovations.net/nsinnovations/fusionpbx.git| cut -d/ -f 3 | grep -P '^\d+\.\d+' | sort | tail -n 1 | cut -d. -f1)
|
||||
FUSION_MINOR=$(git ls-remote --tags https://$GIT_EMAIL:$GIT_PASSWORD@git.nsinnovations.net/nsinnovations/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"
|
||||
@@ -36,7 +36,7 @@ mkdir -p /var/cache/fusionpbx
|
||||
chown -R freeswitch:daemon /var/cache/fusionpbx
|
||||
|
||||
#get the source code
|
||||
git clone $BRANCH https://github.com/fusionpbx/fusionpbx.git /var/www/fusionpbx
|
||||
git clone $BRANCH https://$GIT_EMAIL:$GIT_PASSWORD@git.nsinnovations.net/nsinnovations/fusionpbx.git/var/www/fusionpbx
|
||||
|
||||
#send a message
|
||||
verbose "FusionPBX Installed"
|
||||
|
||||
Reference in New Issue
Block a user