From 6bcbc0ae91e6f272d0b6d54f5038af96e5c112e3 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 27 Feb 2025 08:41:07 +0100 Subject: [PATCH] Update pihole-install.sh --- install/pihole-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/pihole-install.sh b/install/pihole-install.sh index 5e3743432..ee686cb95 100644 --- a/install/pihole-install.sh +++ b/install/pihole-install.sh @@ -141,7 +141,7 @@ server=8.8.8.8 server=8.8.4.4 EOF - sed -i -E 's|^(\s*upstreams =).*|\1 ["127.0.0.1#5335", "8.8.4.4"]|' /etc/pihole/pihole.toml + sed -i -E '/^\s*upstreams\s*=\s*\[/,/^\s*\]/c\ upstreams = [\n "127.0.0.1#5335",\n "8.8.4.4"\n ]' /etc/pihole/pihole.toml systemctl enable -q --now unbound systemctl restart pihole-FTL.service msg_ok "Installed Unbound"