From 71ed842dfd782d2b20315493e9684a02297ca9f0 Mon Sep 17 00:00:00 2001 From: Matthew Nickson Date: Tue, 28 Dec 2021 18:32:06 +0000 Subject: [PATCH] Fixed path to 404 file when using custom.php (#4488) Signed-off-by: Computroniks --- automated install/basic-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index bd2bf4c3..9a975f4b 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -1334,7 +1334,7 @@ installConfigs() { chmod 644 /etc/lighttpd/external.conf # If there is a custom block page in the html/pihole directory, replace 404 handler in lighttpd config if [[ -f "${PI_HOLE_BLOCKPAGE_DIR}/custom.php" ]]; then - sed -i 's/^\(server\.error-handler-404\s*=\s*\).*$/\1"pihole\/custom\.php"/' "${lighttpdConfig}" + sed -i 's/^\(server\.error-handler-404\s*=\s*\).*$/\1"\/pihole\/custom\.php"/' "${lighttpdConfig}" fi # Make the directories if they do not exist and set the owners mkdir -p /run/lighttpd