mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Update _set_php_package w/ pattern match #588
This commit is contained in:
parent
e04ac679dd
commit
ceaa7a3511
@ -78,16 +78,16 @@ function _get_linux_distro() {
|
|||||||
# Sets php package option based on Linux version, abort if unsupported distro
|
# Sets php package option based on Linux version, abort if unsupported distro
|
||||||
function _set_php_package() {
|
function _set_php_package() {
|
||||||
case $RELEASE in
|
case $RELEASE in
|
||||||
"18.04"|"19.10") # Ubuntu Server
|
18.04|19.10) # Ubuntu Server
|
||||||
php_package="php7.4-cgi"
|
php_package="php7.4-cgi"
|
||||||
phpcgiconf="/etc/php/7.4/cgi/php.ini" ;;
|
phpcgiconf="/etc/php/7.4/cgi/php.ini" ;;
|
||||||
"10")
|
10*)
|
||||||
php_package="php7.3-cgi"
|
php_package="php7.3-cgi"
|
||||||
phpcgiconf="/etc/php/7.3/cgi/php.ini" ;;
|
phpcgiconf="/etc/php/7.3/cgi/php.ini" ;;
|
||||||
"9")
|
9*)
|
||||||
php_package="php7.0-cgi"
|
php_package="php7.0-cgi"
|
||||||
phpcgiconf="/etc/php/7.0/cgi/php.ini" ;;
|
phpcgiconf="/etc/php/7.0/cgi/php.ini" ;;
|
||||||
"8")
|
8)
|
||||||
_install_status 1 "${DESC} and php5 are not supported. Please upgrade." ;;
|
_install_status 1 "${DESC} and php5 are not supported. Please upgrade." ;;
|
||||||
*)
|
*)
|
||||||
_install_status 1 "${DESC} is unsupported. Please install on a supported distro." ;;
|
_install_status 1 "${DESC} is unsupported. Please install on a supported distro." ;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user