Update php.sh

This commit is contained in:
FusionPBX 2017-03-04 13:29:53 -07:00 committed by GitHub
parent 553d9c5f9b
commit 8b55bddb12
1 changed files with 7 additions and 4 deletions

View File

@ -12,10 +12,11 @@ cd "$(dirname "$0")"
verbose "Configuring PHP"
#update config if source is being used
if [ .$USE_PHP5_PACKAGE = .true ]; then
if [ ."$php_version" = ."5" ]; then
verbose "version 5.x"
php_ini_file='/etc/php5/fpm/php.ini'
else
fi
if [ ."$php_version" = ."7" ]; then
verbose "version 7.0"
php_ini_file='/etc/php/7.0/fpm/php.ini'
fi
@ -24,11 +25,13 @@ sed 's#upload_max_filesize = .*#upload_max_filesize = 80M#g' -i $php_ini_file
#restart php-fpm
#systemd
if [ .$USE_PHP5_PACKAGE = .true ]; then
if [ ."$php_version" = ."5" ]; then
systemctl restart php5-fpm
else
fi
if [ ."$php_version" = ."7" ]; then
systemctl restart php7.0-fpm
fi
#init.d
#/usr/sbin/service php5-fpm restart
#/usr/sbin/service php7.0-fpm restart