Update nginx.sh

This commit is contained in:
FusionPBX 2017-04-01 18:22:11 -06:00 committed by GitHub
parent 8276c609f2
commit 595f58f038
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,9 @@ pkg install --yes nginx
echo 'nginx_enable="YES"' >> /etc/rc.conf echo 'nginx_enable="YES"' >> /etc/rc.conf
echo 'php_fpm_enable="YES"' >> /etc/rc.conf echo 'php_fpm_enable="YES"' >> /etc/rc.conf
#set the default version of postgres
echo 'DEFAULT_VERSIONS+=pgsql=$database_version' >> /etc/make.conf
#install dependencies #install dependencies
if [ ."$php_version" = ."5" ]; then if [ ."$php_version" = ."5" ]; then
pkg install --yes php56 php56-phar php56-pgsql php56-pdo php56-pdo_pgsql php56-pdo_odbc php56-pdo_sqlite php56-json php56-gd pkg install --yes php56 php56-phar php56-pgsql php56-pdo php56-pdo_pgsql php56-pdo_odbc php56-pdo_sqlite php56-json php56-gd