Update php.sh

This commit is contained in:
FusionPBX 2019-02-22 10:45:22 -07:00 committed by GitHub
parent c15ff96704
commit 1eed29b872
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 6 deletions

View File

@ -31,12 +31,12 @@ if [ ."$php_version" = ."7.1" ]; then
if [ ."$database_version" = ."9.6" ]; then if [ ."$database_version" = ."9.6" ]; then
pkg install --yes postgresql96-client pkg install --yes postgresql96-client
if [ .$(freebsd-version | head -c 2) = ."10" ]; then if [ .$(freebsd-version | head -c 2) = ."10" ]; then
pkg add https://www.fusionpbx.com/downloads/freebsd10/php71-pdo_pgsql-7.1.6_1.txz pkg add https://www.fusionpbx.com/downloads/freebsd/10/php71-pdo_pgsql-7.1.6_1.txz
pkg add https://www.fusionpbx.com/downloads/freebsd10/php71-pgsql-7.1.6_1.txz pkg add https://www.fusionpbx.com/downloads/freebsd/10/php71-pgsql-7.1.6_1.txz
fi fi
if [ .$(freebsd-version | head -c 2) = ."11" ]; then if [ .$(freebsd-version | head -c 2) = ."11" ]; then
pkg add https://www.fusionpbx.com/downloads/freebsd11/php71-pdo_pgsql-7.1.6_1.txz pkg add https://www.fusionpbx.com/downloads/freebsd/11/php71-pdo_pgsql-7.1.6_1.txz
pkg add https://www.fusionpbx.com/downloads/freebsd11/php71-pgsql-7.1.6_1.txz pkg add https://www.fusionpbx.com/downloads/freebsd/11/php71-pgsql-7.1.6_1.txz
fi fi
##set the current working directory ##set the current working directory
@ -58,8 +58,12 @@ if [ ."$php_version" = ."7.2" ]; then
if [ ."$database_version" = ."10" ]; then if [ ."$database_version" = ."10" ]; then
pkg install --yes postgresql10-client pkg install --yes postgresql10-client
if [ .$(freebsd-version | head -c 2) = ."11" ]; then if [ .$(freebsd-version | head -c 2) = ."11" ]; then
pkg add https://www.fusionpbx.com/downloads/freebsd11/php72-pdo_pgsql10-7.2.5.txz pkg add https://www.fusionpbx.com/downloads/freebsd/11/php72-pdo_pgsql10-7.2.5.txz
pkg add https://www.fusionpbx.com/downloads/freebsd11/php72-pgsql10-7.2.5.txz pkg add https://www.fusionpbx.com/downloads/freebsd/11/php72-pgsql10-7.2.5.txz
fi
if [ .$(freebsd-version | head -c 2) = ."12" ]; then
pkg add https://www.fusionpbx.com/downloads/freebsd/12/php72-pdo_pgsql10-7.2.5.txz
pkg add https://www.fusionpbx.com/downloads/freebsd/12/php72-pgsql10-7.2.5.txz
fi fi
fi fi
fi fi