From 4961bf4b1ad394e62b9fee0de60d2be9c84d61b1 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Wed, 15 Feb 2023 23:53:43 +0000 Subject: [PATCH] as mentioned in https://github.com/pi-hole/docker-pi-hole/issues/1323 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 --- src/s6/debian-root/usr/local/bin/install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/s6/debian-root/usr/local/bin/install.sh b/src/s6/debian-root/usr/local/bin/install.sh index 77d17cb..e6ae01c 100644 --- a/src/s6/debian-root/usr/local/bin/install.sh +++ b/src/s6/debian-root/usr/local/bin/install.sh @@ -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