I am unable to test this on a fully fresh pi install right now. I tested the changed code lines on files locally, and they behaved correctly. NOTE: The lighttpd.conf assumes that there will be a line like server.error-handler-404 = "somethingsomethingsomething" once pihole finishes installing. It will only change an existing line, it won't add it if it does not exist. I would have to modify the regex to be like the BLOCKINGMODE regex if that causes issues. That regex changes anything starting with BLOCKINGMODE= to BLOCKINGMODE=IP, it adds it if not.
I also modified the Readme to reflect that these would be automated.
I am unable to test this on a fully fresh pi install right now. I tested the changed code lines on files locally, and they behaved correctly. NOTE: The lighttpd.conf assumes that there will be a line like
server.error-handler-404 = "somethingsomethingsomething"
once pihole finishes installing. It will only change an existing line, it won't add it if it does not exist. I would have to modify the regex to be like the BLOCKINGMODE regex if that causes issues. That regex changes anything starting with BLOCKINGMODE= to BLOCKINGMODE=IP, it adds it if not.I also modified the Readme to reflect that these would be automated.