diff --git a/setup/adguard-install.sh b/setup/adguard-install.sh index 1837bc3259..d5b3943f6a 100644 --- a/setup/adguard-install.sh +++ b/setup/adguard-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/daemonsync-install.sh b/setup/daemonsync-install.sh index db7aff6811..cf10ce6782 100644 --- a/setup/daemonsync-install.sh +++ b/setup/daemonsync-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/dashy-install.sh b/setup/dashy-install.sh index afe8fed7cc..0be1dd4542 100644 --- a/setup/dashy-install.sh +++ b/setup/dashy-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/debian-install.sh b/setup/debian-install.sh index ec5d62e7bb..d11cc00c1e 100644 --- a/setup/debian-install.sh +++ b/setup/debian-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/docker-install.sh b/setup/docker-install.sh index ff9ef82af7..74579fb1da 100644 --- a/setup/docker-install.sh +++ b/setup/docker-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/esphome-install.sh b/setup/esphome-install.sh index 531de09942..0e3e211b54 100644 --- a/setup/esphome-install.sh +++ b/setup/esphome-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/grafana-install.sh b/setup/grafana-install.sh index c502fbfbd1..a502575cca 100644 --- a/setup/grafana-install.sh +++ b/setup/grafana-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/heimdalldashboard-install.sh b/setup/heimdalldashboard-install.sh index e393d40991..75e671d640 100644 --- a/setup/heimdalldashboard-install.sh +++ b/setup/heimdalldashboard-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/homeassistant-install.sh b/setup/homeassistant-install.sh index 1e91c7c46f..877b2cc6fb 100644 --- a/setup/homeassistant-install.sh +++ b/setup/homeassistant-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/homebridge-install.sh b/setup/homebridge-install.sh index 6d612ed6fd..3d23993ce9 100644 --- a/setup/homebridge-install.sh +++ b/setup/homebridge-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/influxdb-install.sh b/setup/influxdb-install.sh index 15d10f2ac5..3ee77e765f 100644 --- a/setup/influxdb-install.sh +++ b/setup/influxdb-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/iobroker-install.sh b/setup/iobroker-install.sh index 66ac393af9..baec9656e7 100644 --- a/setup/iobroker-install.sh +++ b/setup/iobroker-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/jellyfin-install.sh b/setup/jellyfin-install.sh index b578247fdd..8cf0e3dc87 100644 --- a/setup/jellyfin-install.sh +++ b/setup/jellyfin-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/mariadb-install.sh b/setup/mariadb-install.sh index 049fc81f0d..2f2bd540bb 100644 --- a/setup/mariadb-install.sh +++ b/setup/mariadb-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/meshcentral-install.sh b/setup/meshcentral-install.sh index 0077a99df6..1ec009cbe7 100644 --- a/setup/meshcentral-install.sh +++ b/setup/meshcentral-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/motioneye-install.sh b/setup/motioneye-install.sh index e2934db93c..02a34dcaa9 100644 --- a/setup/motioneye-install.sh +++ b/setup/motioneye-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/mqtt-install.sh b/setup/mqtt-install.sh index a6b5a71297..2db4ae73ca 100644 --- a/setup/mqtt-install.sh +++ b/setup/mqtt-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/nginx-proxy-manager-install.sh b/setup/nginx-proxy-manager-install.sh index caa2e0f81a..5331c19ecb 100644 --- a/setup/nginx-proxy-manager-install.sh +++ b/setup/nginx-proxy-manager-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/nocodb-install.sh b/setup/nocodb-install.sh index 49296b4203..aecee00823 100644 --- a/setup/nocodb-install.sh +++ b/setup/nocodb-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/node-red-install.sh b/setup/node-red-install.sh index 0a138e217e..cc886c7420 100644 --- a/setup/node-red-install.sh +++ b/setup/node-red-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/omada-install.sh b/setup/omada-install.sh index 9c65414171..0966ed74b3 100644 --- a/setup/omada-install.sh +++ b/setup/omada-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/photoprism-install.sh b/setup/photoprism-install.sh index 1e134b52d3..b667f01570 100644 --- a/setup/photoprism-install.sh +++ b/setup/photoprism-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/pihole-install.sh b/setup/pihole-install.sh index 632a266274..c5b6fc898c 100644 --- a/setup/pihole-install.sh +++ b/setup/pihole-install.sh @@ -11,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" @@ -38,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/plex-install.sh b/setup/plex-install.sh index 454754ba6a..d55653aa05 100644 --- a/setup/plex-install.sh +++ b/setup/plex-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/podman-homeassistant-install.sh b/setup/podman-homeassistant-install.sh index 4f5efb0748..cb84ec9591 100644 --- a/setup/podman-homeassistant-install.sh +++ b/setup/podman-homeassistant-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/technitiumdns-install.sh b/setup/technitiumdns-install.sh index 985f77d3d2..db487fec2d 100644 --- a/setup/technitiumdns-install.sh +++ b/setup/technitiumdns-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/ubuntu-install.sh b/setup/ubuntu-install.sh index dff1975405..dd6f282e25 100644 --- a/setup/ubuntu-install.sh +++ b/setup/ubuntu-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/unifi-install.sh b/setup/unifi-install.sh index 821dd303e8..ea88b35ad0 100644 --- a/setup/unifi-install.sh +++ b/setup/unifi-install.sh @@ -55,7 +55,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/uptimekuma-install.sh b/setup/uptimekuma-install.sh index d44d48154b..20625dfab6 100644 --- a/setup/uptimekuma-install.sh +++ b/setup/uptimekuma-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/vaultwarden-install.sh b/setup/vaultwarden-install.sh index 6d2614b8f2..b502d0f2b9 100644 --- a/setup/vaultwarden-install.sh +++ b/setup/vaultwarden-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/wireguard-install.sh b/setup/wireguard-install.sh index db50be80b5..ceff4d52f9 100644 --- a/setup/wireguard-install.sh +++ b/setup/wireguard-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/zigbee2mqtt-install.sh b/setup/zigbee2mqtt-install.sh index 13fa965b97..18eea29c27 100644 --- a/setup/zigbee2mqtt-install.sh +++ b/setup/zigbee2mqtt-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else diff --git a/setup/zwavejs2mqtt-install.sh b/setup/zwavejs2mqtt-install.sh index 2f291ca2a9..a675c97837 100644 --- a/setup/zwavejs2mqtt-install.sh +++ b/setup/zwavejs2mqtt-install.sh @@ -54,7 +54,7 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" -wget -q --tries=10 --timeout=5 --spider http://google.com +wget -q --tries=10 --timeout=5 --spider https://google.com if [[ $? -eq 0 ]]; then msg_ok "Internet Online" else