If curl is unable to resolve install.pi-hole.net, it will go from that point to the end and run all commands that were supposed to run.
REM -- Install Pi-hole -- Prevent the Pi-hole installer from running APT on this one occasion. Unattended-upgrades package will keep Debian updated moving forward
%GO% "mv /usr/bin/apt /usr/bin/apt.ph ; echo 'nameserver 9.9.9.9' > /etc/resolv.conf ; curl -L https://install.Pi-hole.net | PIHOLE_SKIP_OS_CHECK=true bash /dev/stdin --unattended ; mv /usr/bin/apt.ph /usr/bin/apt; update-rc.d pihole-FTL remove ; update-rc.d pihole-FTL defaults"
I believe that there should be a stop here if that file cannot be downloaded as there is crucial information in the file in order to continue, and installation will not complete properly.
Note that I can ping it:
C:\Program Files\Pi-hole>%GO% "ping install.pi-hole.net"
PING docker-2-ny1.pi-hole.net (164.90.255.4) 56(84) bytes of data.
64 bytes from 164.90.255.4 (164.90.255.4): icmp_seq=1 ttl=53 time=138 ms
64 bytes from 164.90.255.4 (164.90.255.4): icmp_seq=2 ttl=53 time=152 ms
64 bytes from 164.90.255.4 (164.90.255.4): icmp_seq=3 ttl=53 time=129 ms
64 bytes from 164.90.255.4 (164.90.255.4): icmp_seq=4 ttl=53 time=130 ms
If curl is unable to resolve install.pi-hole.net, it will go from that point to the end and run all commands that were supposed to run.
I believe that there should be a stop here if that file cannot be downloaded as there is crucial information in the file in order to continue, and installation will not complete properly.
Note that I can ping it:
I can also resolve websites such as https://google.com via curl:
but still unable to resolve either install.pi-hole.net (or raw.githubusercontent.com for that matter.)