From 3cea1bd423c9d3bec1edff0bb6e4706c2e78b369 Mon Sep 17 00:00:00 2001 From: Mark Drobnak Date: Fri, 7 Sep 2018 12:09:37 -0400 Subject: [PATCH] Fix lighttpd v1.4.50 crashing on startup It has a bug/regression causing it to fail if external.conf does not exist, so touch external.conf when installing lighttpd config Signed-off-by: Mark Drobnak --- automated install/basic-install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index b5221fc3..60a32960 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -1290,6 +1290,8 @@ installConfigs() { fi # and copy in the config file Pi-hole needs cp ${PI_HOLE_LOCAL_REPO}/advanced/${LIGHTTPD_CFG} /etc/lighttpd/lighttpd.conf + # Make sure the external.conf file exists, as lighttpd v1.4.50 crashes without it + touch /etc/lighttpd/external.conf # if there is a custom block page in the html/pihole directory, replace 404 handler in lighttpd config if [[ -f "/var/www/html/pihole/custom.php" ]]; then sed -i 's/^\(server\.error-handler-404\s*=\s*\).*$/\1"pihole\/custom\.php"/' /etc/lighttpd/lighttpd.conf