Skip to content

Commit

Permalink
Merge pull request #1298 from pi-hole/fix/503
Browse files Browse the repository at this point in the history
Ensure that the directory `/run/lighttpd` exists, and that it is owned by www-data
  • Loading branch information
PromoFaux authored Jan 22, 2023
2 parents c988179 + 90df845 commit 4256d62
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 4256d62

Please sign in to comment.