It is worth noting that this page will exist on a bare metal fresh installation, too. Should we delete it? Probably not - we shouldn't touch that directory really - but in docker we have more control as we build the image from fresh each time. TL;DR, we can do things here that we shouldn't in bare metal installs

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner 2023-02-15 23:53:43 +00:00
parent 39d23d91e4
commit 4961bf4b1a
No known key found for this signature in database
1 changed files with 6 additions and 0 deletions

View File

@ -92,6 +92,12 @@ sed -i $'s/)\s*reconfigurePiholeFunc/) unsupportedFunc/g' /usr/local/bin/pihole
# (it is otherwise only updated when FTL is updated, which doesn't happen as part of the normal course of running this image)
mv /etc/pihole/macvendor.db /macvendor.db
## Remove the default lighttpd unconfigured config:
rm /etc/lighttpd/conf-enabled/99-unconfigured.conf
## Remove the default lighttpd placeholder page for good measure
rm /var/www/html/index.lighttpd.html
if [ ! -f /.piholeFirstBoot ]; then
touch /.piholeFirstBoot
fi