forked from norman/fusionpbx-install.sh-github-mirror
Update php.sh
This commit is contained in:
@@ -13,6 +13,10 @@ verbose "Configuring PHP"
|
|||||||
|
|
||||||
#add the repository
|
#add the repository
|
||||||
if [ ."$os_name" = ."Ubuntu" ]; then
|
if [ ."$os_name" = ."Ubuntu" ]; then
|
||||||
|
#18.04.x - /*bionic/
|
||||||
|
if [ ."$os_codename" = ."bionic" ]; then
|
||||||
|
echo "Ubuntu 18.04 LTS\n"
|
||||||
|
fi
|
||||||
#16.10.x - */yakkety/
|
#16.10.x - */yakkety/
|
||||||
#16.04.x - */xenial/
|
#16.04.x - */xenial/
|
||||||
#14.04.x - */trusty/
|
#14.04.x - */trusty/
|
||||||
@@ -21,22 +25,7 @@ if [ ."$os_name" = ."Ubuntu" ]; then
|
|||||||
LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php
|
LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php
|
||||||
fi
|
fi
|
||||||
elif [ ."$cpu_architecture" = ."arm" ]; then
|
elif [ ."$cpu_architecture" = ."arm" ]; then
|
||||||
#Pi2 and Pi3 Raspbian
|
echo arm"
|
||||||
#Odroid
|
|
||||||
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
|
|
||||||
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'
|
|
||||||
else
|
|
||||||
#9.x - */stretch/
|
|
||||||
#8.x - */jessie/
|
|
||||||
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
|
|
||||||
sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
|
|
||||||
fi
|
fi
|
||||||
apt-get update -y
|
apt-get update -y
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user