1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Minor: update legacy version check

This commit is contained in:
billz 2019-11-11 09:17:35 +00:00
parent fa0c18c52e
commit 21ae039589

View File

@ -11,14 +11,14 @@ version=`sed 's/\..*//' /etc/debian_version`
# Determine Raspbian version, set default home location for lighttpd and # Determine Raspbian version, set default home location for lighttpd and
# php package to install # php package to install
if [ $version -eq 10 ]; then if [ "$version" -eq "10" ]; then
version_msg="Raspbian 10.0 (Buster)" version_msg="Raspbian 10.0 (Buster)"
php_package="php7.1-cgi" php_package="php7.1-cgi"
elif [ $version -eq 9 ]; then elif [ "$version" -eq "9" ]; then
version_msg="Raspbian 9.0 (Stretch)" version_msg="Raspbian 9.0 (Stretch)"
php_package="php7.0-cgi" php_package="php7.0-cgi"
elif [ $version -eq 8 ]; then elif [ "$version" -eq "8" ]; then
version_msg="Raspbian 8.0 (Jessie)" version_msg="Raspbian 8.0 (Jessie)"
php_package="php5-cgi" php_package="php5-cgi"
else else
version_msg="Raspbian earlier than 8.0 (Wheezy)" version_msg="Raspbian earlier than 8.0 (Wheezy)"