Update php.sh
This commit is contained in:
parent
8216b4ecaa
commit
4ada8ce29a
|
|
@ -21,14 +21,13 @@ 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
|
#Pi2 and Pi3 Raspbian, #Odroid
|
||||||
#Odroid
|
|
||||||
#if [ ."$os_codename" = ."stretch" ]; then
|
#if [ ."$os_codename" = ."stretch" ]; then
|
||||||
# php_version=7.2
|
# php_version=7.0
|
||||||
#else
|
|
||||||
# php_version=
|
|
||||||
#fi
|
#fi
|
||||||
php_version=
|
if [ ."$os_codename" = ."buster" ]; then
|
||||||
|
php_version=7.3
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
#10.x - buster
|
#10.x - buster
|
||||||
#9.x - stretch
|
#9.x - stretch
|
||||||
|
|
@ -116,6 +115,9 @@ fi
|
||||||
if [ ."$php_version" = ."7.2" ]; then
|
if [ ."$php_version" = ."7.2" ]; then
|
||||||
systemctl restart php7.2-fpm
|
systemctl restart php7.2-fpm
|
||||||
fi
|
fi
|
||||||
|
if [ ."$php_version" = ."7.3" ]; then
|
||||||
|
systemctl restart php7.3-fpm
|
||||||
|
fi
|
||||||
|
|
||||||
#init.d
|
#init.d
|
||||||
#/usr/sbin/service php5-fpm restart
|
#/usr/sbin/service php5-fpm restart
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue