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). Resolves #337

This commit is contained in:
billz 2019-06-24 21:57:49 +00:00
parent cdf1406aba
commit 13aa0864d0

View File

@ -1,11 +1,20 @@
#!/bin/bash
#
# RaspAP installation functions.
# author: @billz
# license: GNU General Public License v3.0
raspap_dir="/etc/raspap" raspap_dir="/etc/raspap"
raspap_user="www-data" raspap_user="www-data"
webroot_dir="/var/www/html"
version=`sed 's/\..*//' /etc/debian_version` version=`sed 's/\..*//' /etc/debian_version`
# Determine version, set default home location for lighttpd and # Determine version, set default home location for lighttpd and
# php package to install # php package to install
webroot_dir="/var/www/html" if [ $version -eq 10 ]; then
if [ $version -eq 9 ]; then version_msg="Raspian 10.0 (Buster)"
php_package="php7.0-cgi"
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"
elif [ $version -eq 8 ]; then elif [ $version -eq 8 ]; then