1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 23:08:07 +00:00

Merge pull request #2407 from pi-hole/fix/lighttpd-external-conf

Fix lighttpd v1.4.50 crashing on startup
This commit is contained in:
Mark Drobnak 2018-09-07 12:55:21 -04:00 committed by GitHub
commit 537e288758
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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