Update php.sh

This commit is contained in:
FusionPBX 2019-08-22 09:16:54 -06:00 committed by GitHub
parent 8216b4ecaa
commit 4ada8ce29a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 6 deletions

View File

@ -21,14 +21,13 @@ if [ ."$os_name" = ."Ubuntu" ]; then
LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php
fi
elif [ ."$cpu_architecture" = ."arm" ]; then
#Pi2 and Pi3 Raspbian
#Odroid
#Pi2 and Pi3 Raspbian, #Odroid
#if [ ."$os_codename" = ."stretch" ]; then
# php_version=7.2
#else
# php_version=
# php_version=7.0
#fi
php_version=
if [ ."$os_codename" = ."buster" ]; then
php_version=7.3
fi
else
#10.x - buster
#9.x - stretch
@ -116,6 +115,9 @@ fi
if [ ."$php_version" = ."7.2" ]; then
systemctl restart php7.2-fpm
fi
if [ ."$php_version" = ."7.3" ]; then
systemctl restart php7.3-fpm
fi
#init.d
#/usr/sbin/service php5-fpm restart