Skip to content

Commit

Permalink
Ensure that the directory /run/lighttpd exists, and that it is owne…
Browse files Browse the repository at this point in the history
…d by www-data. How did this work before?!

Signed-off-by: Adam Warner <[email protected]>
  • Loading branch information
PromoFaux committed Jan 22, 2023
1 parent 13cdfda commit 90df845
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/s6/debian-root/usr/local/bin/bash_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 90df845

Please sign in to comment.