mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-10-28 02:00:14 +01:00
Pi-hole: download the installer before running it (#18182)
bash <(curl ...) runs an empty script and exits 0 when the download fails, so the install went on and broke at /etc/dnsmasq.d/01-pihole.conf instead.
This commit is contained in:
committed by
GitHub
parent
d2053aaf6b
commit
31560bceba
@@ -22,7 +22,9 @@ msg_ok "Installed Dependencies"
|
||||
msg_info "Installing Pi-hole"
|
||||
mkdir -p /etc/pihole
|
||||
touch /etc/pihole/pihole.toml
|
||||
$STD bash <(curl -fsSL https://install.pi-hole.net) --unattended
|
||||
curl_with_retry "https://install.pi-hole.net" /tmp/pihole-install.sh
|
||||
$STD bash /tmp/pihole-install.sh --unattended
|
||||
rm -f /tmp/pihole-install.sh
|
||||
sed -i -E '
|
||||
/^\s*upstreams =/ s|=.*|= ["8.8.8.8", "8.8.4.4"]|
|
||||
/^\s*interface =/ s|=.*|= "eth0"|
|
||||
|
||||
Reference in New Issue
Block a user