mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-03-10 07:30:28 +00:00
PiHole: Fix Unbound sed for DNS (#2647)
This commit is contained in:
parent
90fc30a228
commit
981baed9d3
@ -141,7 +141,7 @@ server=8.8.8.8
|
|||||||
server=8.8.4.4
|
server=8.8.4.4
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
sed -i -E "s|^(upstreams =).*|\1 [\"127.0.0.1#5335\", \"8.8.4.4\"]|" /etc/pihole/pihole.toml
|
sed -i -E 's|^(\s*upstreams =).*|\1 ["127.0.0.1#5335", "8.8.4.4"]|' /etc/pihole/pihole.toml
|
||||||
systemctl enable -q --now unbound
|
systemctl enable -q --now unbound
|
||||||
systemctl restart pihole-FTL.service
|
systemctl restart pihole-FTL.service
|
||||||
msg_ok "Installed Unbound"
|
msg_ok "Installed Unbound"
|
||||||
|
Loading…
Reference in New Issue
Block a user