mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Detect Raspian version and set lighttpd webroot. Fixes #29
This commit is contained in:
parent
8d33a049ed
commit
17d1b69805
@ -1,6 +1,15 @@
|
||||
raspap_dir="/etc/raspap"
|
||||
raspap_user="www-data"
|
||||
webroot_dir="/var/www"
|
||||
version=`cat /etc/debian_version`
|
||||
|
||||
# Determine version and set default home location for lighttpd
|
||||
if [ $version == "8.0" ]; then
|
||||
echo -n "Raspian verison is 8.0 Jessie"
|
||||
webroot_dir="/var/www/html"
|
||||
elif [ $version == "7.8" ]; then
|
||||
echo -n "Raspian version is 7.8 Wheezy"
|
||||
webroot_dir="/var/www"
|
||||
fi
|
||||
|
||||
# Outputs a RaspAP INSTALL log line
|
||||
function install_log() {
|
||||
|
Loading…
Reference in New Issue
Block a user