Update nginx.sh

This commit is contained in:
FusionPBX 2018-11-05 23:35:42 -07:00 committed by GitHub
parent cfb9dc5ab9
commit 722fbc9846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 11 deletions

View File

@ -13,11 +13,7 @@ verbose "Installing the web server"
#change the version of php for debian stretch #change the version of php for debian stretch
if [ ."$os_codename" = ."stretch" ]; then if [ ."$os_codename" = ."stretch" ]; then
if [ ."$cpu_architecture" = ."arm" ]; then
php_version=7.2
else
php_version=7.0 php_version=7.0
fi
fi fi
#if [ ."$cpu_architecture" = ."arm" ]; then #if [ ."$cpu_architecture" = ."arm" ]; then
@ -40,7 +36,11 @@ elif [ ."$os_name" = ."Ubuntu" ]; then
elif [ ."$cpu_architecture" = ."arm" ]; then elif [ ."$cpu_architecture" = ."arm" ]; then
#Pi2 and Pi3 Raspbian #Pi2 and Pi3 Raspbian
#Odroid #Odroid
php_version=5 if [ ."$os_codename" = ."stretch" ]; then
php_version=7.2
else
php_version=5.6
fi
apt-get -y install apt-transport-https lsb-release ca-certificates apt-get -y install apt-transport-https lsb-release ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'