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 <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner 2023-01-22 17:51:09 +00:00
parent 13cdfda3ee
commit 90df84553a
No known key found for this signature in database
1 changed files with 5 additions and 0 deletions

View File

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