mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Updated php version for Raspbian 10.0 (Buster)
This commit is contained in:
parent
913ce3b5c0
commit
f9b5a8f126
@ -7,7 +7,7 @@ version=`sed 's/\..*//' /etc/debian_version`
|
|||||||
webroot_dir="/var/www/html"
|
webroot_dir="/var/www/html"
|
||||||
if [ $version -eq 10 ]; then
|
if [ $version -eq 10 ]; then
|
||||||
version_msg="Raspian 10.0 (Buster)"
|
version_msg="Raspian 10.0 (Buster)"
|
||||||
php_package="php7.0-cgi"
|
php_package="php7.1-cgi"
|
||||||
elif [ $version -eq 9 ]; then
|
elif [ $version -eq 9 ]; then
|
||||||
version_msg="Raspian 9.0 (Stretch)"
|
version_msg="Raspian 9.0 (Stretch)"
|
||||||
php_package="php7.0-cgi"
|
php_package="php7.0-cgi"
|
||||||
@ -18,13 +18,14 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
phpcgiconf=""
|
phpcgiconf=""
|
||||||
if [ "$php_package" = "php7.0-cgi" ]; then
|
if [ "$php_package" = "php7.1-cgi" ]; then
|
||||||
|
phpcgiconf="/etc/php/7.1/cgi/php.ini"
|
||||||
|
elif [ "$php_package" = "php7.0-cgi" ]; then
|
||||||
phpcgiconf="/etc/php/7.0/cgi/php.ini"
|
phpcgiconf="/etc/php/7.0/cgi/php.ini"
|
||||||
elif [ "$php_package" = "php5-cgi" ]; then
|
elif [ "$php_package" = "php5-cgi" ]; then
|
||||||
phpcgiconf="/etc/php5/cgi/php.ini"
|
phpcgiconf="/etc/php5/cgi/php.ini"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Outputs a RaspAP Install log line
|
# Outputs a RaspAP Install log line
|
||||||
function install_log() {
|
function install_log() {
|
||||||
echo -e "\033[1;32mRaspAP Install: $*\033[m"
|
echo -e "\033[1;32mRaspAP Install: $*\033[m"
|
||||||
|
Loading…
Reference in New Issue
Block a user