diff --git a/setup/adguard-install.sh b/setup/adguard-install.sh index 1837bc32..d5b3943f 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 db7aff68..cf10ce67 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 afe8fed7..0be1dd45 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 ec5d62e7..d11cc00c 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 ff9ef82a..74579fb1 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 531de099..0e3e211b 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 c502fbfb..a502575c 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 e393d409..75e671d6 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 1e91c7c4..877b2cc6 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 6d612ed6..3d23993c 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 15d10f2a..3ee77e76 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 66ac393a..baec9656 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 b578247f..8cf0e3dc 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 049fc81f..2f2bd540 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 0077a99d..1ec009cb 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 e2934db9..02a34dca 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 a6b5a712..2db4ae73 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 caa2e0f8..5331c19e 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 49296b42..aecee008 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 0a138e21..cc886c74 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 9c654141..0966ed74 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 1e134b52..b667f015 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 632a2662..c5b6fc89 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 454754ba..d55653aa 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 4f5efb07..cb84ec95 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 985f77d3..db487fec 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 dff19754..dd6f282e 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 821dd303..ea88b35a 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 d44d4815..20625dfa 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 6d2614b8..b502d0f2 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 db50be80..ceff4d52 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 13fa965b..18eea29c 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 2f291ca2..a675c978 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