Merge pull request #1298 from pi-hole/fix/503

Ensure that the directory `/run/lighttpd` exists, and that it is owned by www-data
This commit is contained in:
Adam Warner 2023-01-22 17:53:17 +00:00 committed by GitHub
commit 4256d62a1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
}