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
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue