From 13aa0864d039ce16049f9a8f0bfe479435045b44 Mon Sep 17 00:00:00 2001 From: billz Date: Mon, 24 Jun 2019 21:57:49 +0000 Subject: [PATCH] Updated to detect Raspbian 10.0 (Buster). Resolves #337 --- installers/common.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/installers/common.sh b/installers/common.sh index 70258c93..f1077606 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -1,11 +1,20 @@ +#!/bin/bash +# +# RaspAP installation functions. +# author: @billz +# license: GNU General Public License v3.0 + raspap_dir="/etc/raspap" raspap_user="www-data" +webroot_dir="/var/www/html" version=`sed 's/\..*//' /etc/debian_version` # Determine version, set default home location for lighttpd and # php package to install -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