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

Updated to detect Raspbian 10.0 (Buster)

This commit is contained in:
billz 2019-06-24 22:14:38 +00:00
parent 13aa0864d0
commit de8bdef908

View File

@ -5,15 +5,14 @@ version=`sed 's/\..*//' /etc/debian_version`
# Determine version and set default home location for lighttpd
webroot_dir="/var/www/html"
if [ $version -eq 9 ]; then
if [ $version -eq 10 ]; then
version_msg="Raspian 10.0 (Buster)"
php_package="php7.0-cgi"
elif [ $version -eq 9 ]; then
version_msg="Raspian 9.0 (Stretch)"
php_package="php7.0-cgi"
elif [ $version -eq 8 ]; then
version_msg="Raspian 8.0 (Jessie)"
webroot_dir="/var/www"
php_package="php5-cgi"
else
version_msg="Raspian earlier than 8.0 (Wheezy)"
version_msg="Raspian 8.0 (Jessie) or earlier"
webroot_dir="/var/www"
php_package="php5-cgi"
fi