Skip to content

Commit 981baed

Browse files
authored
PiHole: Fix Unbound sed for DNS (#2647)
1 parent 90fc30a commit 981baed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/pihole-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ server=8.8.8.8
141141
server=8.8.4.4
142142
EOF
143143

144-
sed -i -E "s|^(upstreams =).*|\1 [\"127.0.0.1#5335\", \"8.8.4.4\"]|" /etc/pihole/pihole.toml
144+
sed -i -E 's|^(\s*upstreams =).*|\1 ["127.0.0.1#5335", "8.8.4.4"]|' /etc/pihole/pihole.toml
145145
systemctl enable -q --now unbound
146146
systemctl restart pihole-FTL.service
147147
msg_ok "Installed Unbound"

0 commit comments

Comments
 (0)