Update fusionpbx.sh
This commit is contained in:
parent
7f714a6174
commit
9a07c8ec0f
|
|
@ -19,8 +19,8 @@ if [ .$system_branch = .'master' ]; then
|
||||||
verbose "Using master"
|
verbose "Using master"
|
||||||
branch=""
|
branch=""
|
||||||
else
|
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_major=$(git ls-remote --heads https://github.com/Scuzz12/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_minor=$(git ls-remote --tags https://github.com/Scuzz12/fusionpbx.git $system_major.* | cut -d/ -f3 | grep -P '^\d+\.\d+' | sort | tail -n 1 | cut -d. -f2)
|
||||||
system_version=$system_major.$system_minor
|
system_version=$system_major.$system_minor
|
||||||
verbose "Using version $system_version"
|
verbose "Using version $system_version"
|
||||||
branch="-b $system_version"
|
branch="-b $system_version"
|
||||||
|
|
@ -31,5 +31,5 @@ mkdir -p /var/cache/fusionpbx
|
||||||
chown -R www-data:www-data /var/cache/fusionpbx
|
chown -R www-data:www-data /var/cache/fusionpbx
|
||||||
|
|
||||||
#get the source code
|
#get the source code
|
||||||
git clone $branch https://github.com/fusionpbx/fusionpbx.git /var/www/fusionpbx
|
git clone $branch https://github.com/Scuzz12/fusionpbx.git /var/www/fusionpbx
|
||||||
chown -R www-data:www-data /var/www/fusionpbx
|
chown -R www-data:www-data /var/www/fusionpbx
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue