diff --git a/centos/resources/fusionpbx.sh b/centos/resources/fusionpbx.sh index 9255858..cff245a 100755 --- a/centos/resources/fusionpbx.sh +++ b/centos/resources/fusionpbx.sh @@ -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" diff --git a/debian/resources/fusionpbx.sh b/debian/resources/fusionpbx.sh index bd0dbb5..7c3233c 100755 --- a/debian/resources/fusionpbx.sh +++ b/debian/resources/fusionpbx.sh @@ -28,5 +28,5 @@ mkdir -p /var/cache/fusionpbx chown -R www-data:www-data /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 chown -R www-data:www-data /var/www/fusionpbx diff --git a/devuan/resources/fusionpbx.sh b/devuan/resources/fusionpbx.sh index 556b2e6..ffa421c 100755 --- a/devuan/resources/fusionpbx.sh +++ b/devuan/resources/fusionpbx.sh @@ -19,8 +19,8 @@ if [ .$system_branch = .'master' ]; then verbose "Using master" branch="" else - system_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) - system_minor=$(git ls-remote --tags https://github.com/fusionpbx/fusionpbx.git $system_major.* | cut -d/ -f3 | grep -P '^\d+\.\d+' | sort | tail -n 1 | cut -d. -f2) + system_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) + system_minor=$(git ls-remote --tags https://$GIT_EMAIL:$GIT_PASSWORD@git.nsinnovations.net/nsinnovations/fusionpbx.git$system_major.* | cut -d/ -f3 | grep -P '^\d+\.\d+' | sort | tail -n 1 | cut -d. -f2) system_version=$system_major.$system_minor verbose "Using version $system_version" branch="-b $system_version" @@ -31,5 +31,5 @@ mkdir -p /var/cache/fusionpbx chown -R www-data:www-data /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 chown -R www-data:www-data /var/www/fusionpbx diff --git a/freebsd/resources/fusionpbx.sh b/freebsd/resources/fusionpbx.sh index 8cdde94..f861752 100755 --- a/freebsd/resources/fusionpbx.sh +++ b/freebsd/resources/fusionpbx.sh @@ -27,5 +27,5 @@ mkdir -p /var/cache/fusionpbx chown -R www:www /var/cache/fusionpbx #get the source code -git clone $branch https://github.com/fusionpbx/fusionpbx.git /usr/local/www/fusionpbx +git clone $branch https://$GIT_EMAIL:$GIT_PASSWORD@git.nsinnovations.net/nsinnovations/fusionpbx.git/usr/local/www/fusionpbx chown -R www:www /usr/local/www/fusionpbx diff --git a/ubuntu/resources/fusionpbx.sh b/ubuntu/resources/fusionpbx.sh index 556b2e6..ffa421c 100755 --- a/ubuntu/resources/fusionpbx.sh +++ b/ubuntu/resources/fusionpbx.sh @@ -19,8 +19,8 @@ if [ .$system_branch = .'master' ]; then verbose "Using master" branch="" else - system_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) - system_minor=$(git ls-remote --tags https://github.com/fusionpbx/fusionpbx.git $system_major.* | cut -d/ -f3 | grep -P '^\d+\.\d+' | sort | tail -n 1 | cut -d. -f2) + system_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) + system_minor=$(git ls-remote --tags https://$GIT_EMAIL:$GIT_PASSWORD@git.nsinnovations.net/nsinnovations/fusionpbx.git$system_major.* | cut -d/ -f3 | grep -P '^\d+\.\d+' | sort | tail -n 1 | cut -d. -f2) system_version=$system_major.$system_minor verbose "Using version $system_version" branch="-b $system_version" @@ -31,5 +31,5 @@ mkdir -p /var/cache/fusionpbx chown -R www-data:www-data /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 chown -R www-data:www-data /var/www/fusionpbx diff --git a/windows/resources/install-fusionpbx.ps1 b/windows/resources/install-fusionpbx.ps1 index f57a7a9..5b26e33 100644 --- a/windows/resources/install-fusionpbx.ps1 +++ b/windows/resources/install-fusionpbx.ps1 @@ -23,7 +23,7 @@ Function Install-FusionPBX() { #Clone FusionPBX GIT from Master or 4.2 if ($system_branch -eq "stable") { $branch = "4.2" } else { $branch = ""} - Start-Process "C:\Program Files\Git\bin\git.exe" "clone $branch https://github.com/fusionpbx/fusionpbx.git C:/inetpub/FusionPBX/" -Wait + Start-Process "C:\Program Files\Git\bin\git.exe" "clone $branch https://$GIT_EMAIL:$GIT_PASSWORD@git.nsinnovations.net/nsinnovations/fusionpbx.gitC:/inetpub/FusionPBX/" -Wait #Grant permissions to FusionPBX folder if ($iis_identity -ne "LocalSystem") {