From 90df84553ab2a46ede8c32ae72debed8048be2d3 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Sun, 22 Jan 2023 17:51:09 +0000 Subject: [PATCH] Ensure that the directory `/run/lighttpd` exists, and that it is owned by www-data. How did this work before?! Signed-off-by: Adam Warner --- src/s6/debian-root/usr/local/bin/bash_functions.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/s6/debian-root/usr/local/bin/bash_functions.sh b/src/s6/debian-root/usr/local/bin/bash_functions.sh index efb22c2a7..fdeebed3e 100644 --- a/src/s6/debian-root/usr/local/bin/bash_functions.sh +++ b/src/s6/debian-root/usr/local/bin/bash_functions.sh @@ -118,6 +118,11 @@ ensure_basic_configuration() { cp /etc/.pihole/advanced/01-pihole.conf /etc/dnsmasq.d/ fi; + # Ensure that /run/lighttpd exists for the php socket, and is owned by www-data. + # Without this, the web interface will return a 503. Not sure how this used to work, as this was always the directory that was used in previous versions of the image. + mkdir -p /run/lighttpd + chown www-data:www-data /run/lighttpd + # setup_or_skip_gravity }