From 3e6194e65f28e8242e2d3b0990fde0493f6d00e7 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Tue, 9 Jul 2019 12:29:09 +0200 Subject: [PATCH] Set the correct server root for lighttpd --- bibliotecha.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bibliotecha.sh b/bibliotecha.sh index 1dd6e22..744bcbe 100755 --- a/bibliotecha.sh +++ b/bibliotecha.sh @@ -266,6 +266,10 @@ function configure_webserver { echo 'include "bibliotecha/bibliotecha.conf"' >> /etc/lighttpd/lighttpd.conf fi + sed -i \ + 's/server.document-root.*/server.document-root = "\/var\/www"/g' \ + /etc/lighttpd/lighttpd.conf + mkdir -p "$LIGHTTPD_CONFIG_PATH" { echo 'server.error-handler = "/bibliotecha/index.html"'