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