diff --git a/install/adguard-v5-install.sh b/install/adguard-v5-install.sh index e74135d96..27f82a04e 100644 --- a/install/adguard-v5-install.sh +++ b/install/adguard-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/audiobookshelf-v5-install.sh b/install/audiobookshelf-v5-install.sh index 0be7f07ac..0f9018d45 100644 --- a/install/audiobookshelf-v5-install.sh +++ b/install/audiobookshelf-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/autobrr-v5-install.sh b/install/autobrr-v5-install.sh index 1485c75be..094d2d9d5 100644 --- a/install/autobrr-v5-install.sh +++ b/install/autobrr-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/blocky-v5-install.sh b/install/blocky-v5-install.sh index f51e98fbd..565fb004f 100644 --- a/install/blocky-v5-install.sh +++ b/install/blocky-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/casaos-v5-install.sh b/install/casaos-v5-install.sh index ada2bb6b8..e2bec0763 100644 --- a/install/casaos-v5-install.sh +++ b/install/casaos-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/changedetection-v5-install.sh b/install/changedetection-v5-install.sh index 7d2bda098..5a582c98c 100644 --- a/install/changedetection-v5-install.sh +++ b/install/changedetection-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/cronicle-v5-install.sh b/install/cronicle-v5-install.sh index a8bb2b6d3..785cd1bcd 100644 --- a/install/cronicle-v5-install.sh +++ b/install/cronicle-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/daemonsync-v5-install.sh b/install/daemonsync-v5-install.sh index 9b5e7eeab..d4f703ee7 100644 --- a/install/daemonsync-v5-install.sh +++ b/install/daemonsync-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/dashy-v5-install.sh b/install/dashy-v5-install.sh index 565690e20..a4aa247f8 100644 --- a/install/dashy-v5-install.sh +++ b/install/dashy-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/debian-v5-install.sh b/install/debian-v5-install.sh index 7a4f410ed..03b42c316 100644 --- a/install/debian-v5-install.sh +++ b/install/debian-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/deconz-v5-install.sh b/install/deconz-v5-install.sh index 2d51c7e07..7dee64a55 100644 --- a/install/deconz-v5-install.sh +++ b/install/deconz-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/deluge-v5-install.sh b/install/deluge-v5-install.sh index da12b769f..9164cce20 100644 --- a/install/deluge-v5-install.sh +++ b/install/deluge-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/devuan-v5-install.sh b/install/devuan-v5-install.sh index da159dbeb..2ab60b406 100644 --- a/install/devuan-v5-install.sh +++ b/install/devuan-v5-install.sh @@ -60,6 +60,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -73,6 +74,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/docker-v5-install.sh b/install/docker-v5-install.sh index 31ceda72a..dbd591e7e 100644 --- a/install/docker-v5-install.sh +++ b/install/docker-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/emby-v5-install.sh b/install/emby-v5-install.sh index 066dc17dd..be0e0a421 100644 --- a/install/emby-v5-install.sh +++ b/install/emby-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/emqx-v5-install.sh b/install/emqx-v5-install.sh index 9529d9619..d63e51b7d 100644 --- a/install/emqx-v5-install.sh +++ b/install/emqx-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/esphome-v5-install.sh b/install/esphome-v5-install.sh index 2a8f81f60..d18f28733 100644 --- a/install/esphome-v5-install.sh +++ b/install/esphome-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/go2rtc-v5-install.sh b/install/go2rtc-v5-install.sh index 532e4a302..9cc1f08ef 100644 --- a/install/go2rtc-v5-install.sh +++ b/install/go2rtc-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/grafana-v5-install.sh b/install/grafana-v5-install.sh index 159fefe25..7229d99b3 100644 --- a/install/grafana-v5-install.sh +++ b/install/grafana-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/grocy-v5-install.sh b/install/grocy-v5-install.sh index f8087bbd5..9bebd2fe6 100644 --- a/install/grocy-v5-install.sh +++ b/install/grocy-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/heimdalldashboard-v5-install.sh b/install/heimdalldashboard-v5-install.sh index f0eee420c..9f1326999 100644 --- a/install/heimdalldashboard-v5-install.sh +++ b/install/heimdalldashboard-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/homeassistant-core-v5-install.sh b/install/homeassistant-core-v5-install.sh index ac3cc58d3..9418516af 100644 --- a/install/homeassistant-core-v5-install.sh +++ b/install/homeassistant-core-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/homeassistant-v5-install.sh b/install/homeassistant-v5-install.sh index 071ab8af4..be302148c 100644 --- a/install/homeassistant-v5-install.sh +++ b/install/homeassistant-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/homebridge-v5-install.sh b/install/homebridge-v5-install.sh index f07731d63..5d640d5f8 100644 --- a/install/homebridge-v5-install.sh +++ b/install/homebridge-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/homepage-v5-install.sh b/install/homepage-v5-install.sh index d4a4e801f..e3efeb370 100644 --- a/install/homepage-v5-install.sh +++ b/install/homepage-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/homer-v5-install.sh b/install/homer-v5-install.sh index bf873e801..48193db57 100644 --- a/install/homer-v5-install.sh +++ b/install/homer-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/hyperion-v5-install.sh b/install/hyperion-v5-install.sh index cdf9fd910..5d34310d0 100644 --- a/install/hyperion-v5-install.sh +++ b/install/hyperion-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/influxdb-v5-install.sh b/install/influxdb-v5-install.sh index 5f4d9f679..5cafffaab 100644 --- a/install/influxdb-v5-install.sh +++ b/install/influxdb-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/iobroker-v5-install.sh b/install/iobroker-v5-install.sh index 9316795f0..1b658cdef 100644 --- a/install/iobroker-v5-install.sh +++ b/install/iobroker-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/jellyfin-v5-install.sh b/install/jellyfin-v5-install.sh index 11451bf26..31bf0c172 100644 --- a/install/jellyfin-v5-install.sh +++ b/install/jellyfin-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/k0s-v5-install.sh b/install/k0s-v5-install.sh index fc6f63142..c64cc71d6 100644 --- a/install/k0s-v5-install.sh +++ b/install/k0s-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/kavita-v5-install.sh b/install/kavita-v5-install.sh index b6e0d2309..19c4c8b49 100644 --- a/install/kavita-v5-install.sh +++ b/install/kavita-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/keycloak-v5-install.sh b/install/keycloak-v5-install.sh index ae2a6754b..f272ec54a 100644 --- a/install/keycloak-v5-install.sh +++ b/install/keycloak-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/lidarr-v5-install.sh b/install/lidarr-v5-install.sh index d5798b443..dfbda183e 100644 --- a/install/lidarr-v5-install.sh +++ b/install/lidarr-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/magicmirror-v5-install.sh b/install/magicmirror-v5-install.sh index 9f1417447..85845a72f 100644 --- a/install/magicmirror-v5-install.sh +++ b/install/magicmirror-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/mariadb-v5-install.sh b/install/mariadb-v5-install.sh index 07c6486ba..25468b0a0 100644 --- a/install/mariadb-v5-install.sh +++ b/install/mariadb-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/meshcentral-v5-install.sh b/install/meshcentral-v5-install.sh index f37c5614a..c001071e4 100644 --- a/install/meshcentral-v5-install.sh +++ b/install/meshcentral-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/motioneye-v5-install.sh b/install/motioneye-v5-install.sh index 2c177e739..97a8efbb7 100644 --- a/install/motioneye-v5-install.sh +++ b/install/motioneye-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/mqtt-v5-install.sh b/install/mqtt-v5-install.sh index 980ad4109..9f2960b70 100644 --- a/install/mqtt-v5-install.sh +++ b/install/mqtt-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/n8n-v5-install.sh b/install/n8n-v5-install.sh index 1881f808f..31446ae55 100644 --- a/install/n8n-v5-install.sh +++ b/install/n8n-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/navidrome-v5-install.sh b/install/navidrome-v5-install.sh index 2dd1b3692..732a79519 100644 --- a/install/navidrome-v5-install.sh +++ b/install/navidrome-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/nextcloudpi-v5-install.sh b/install/nextcloudpi-v5-install.sh index 4b4c4d21f..b845b2f8f 100644 --- a/install/nextcloudpi-v5-install.sh +++ b/install/nextcloudpi-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/nginxproxymanager-v5-install.sh b/install/nginxproxymanager-v5-install.sh index 8e16f1010..1973553bb 100644 --- a/install/nginxproxymanager-v5-install.sh +++ b/install/nginxproxymanager-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/nocodb-v5-install.sh b/install/nocodb-v5-install.sh index c5ecc2fb6..33377c85c 100644 --- a/install/nocodb-v5-install.sh +++ b/install/nocodb-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/node-red-v5-install.sh b/install/node-red-v5-install.sh index 5b548bf07..9f59d1b84 100644 --- a/install/node-red-v5-install.sh +++ b/install/node-red-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/omada-v5-install.sh b/install/omada-v5-install.sh index 0271ba38d..176b67fcd 100644 --- a/install/omada-v5-install.sh +++ b/install/omada-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/omv-v5-install.sh b/install/omv-v5-install.sh index 22319f8b2..8fc871f81 100644 --- a/install/omv-v5-install.sh +++ b/install/omv-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/openhab-v5-install.sh b/install/openhab-v5-install.sh index fc7861d13..6e181437d 100644 --- a/install/openhab-v5-install.sh +++ b/install/openhab-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/paperless-ngx-v5-install.sh b/install/paperless-ngx-v5-install.sh index 90d0d5184..6279188b8 100644 --- a/install/paperless-ngx-v5-install.sh +++ b/install/paperless-ngx-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/photoprism-v5-install.sh b/install/photoprism-v5-install.sh index 084c512ef..39373a058 100644 --- a/install/photoprism-v5-install.sh +++ b/install/photoprism-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/pihole-v5-install.sh b/install/pihole-v5-install.sh index 0d3ae506e..a472ab559 100644 --- a/install/pihole-v5-install.sh +++ b/install/pihole-v5-install.sh @@ -64,6 +64,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -77,6 +78,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/plex-v5-install.sh b/install/plex-v5-install.sh index f7b00eee2..a3ca29921 100644 --- a/install/plex-v5-install.sh +++ b/install/plex-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/podman-homeassistant-v5-install.sh b/install/podman-homeassistant-v5-install.sh index 53779ee10..8d768fcb0 100644 --- a/install/podman-homeassistant-v5-install.sh +++ b/install/podman-homeassistant-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/podman-v5-install.sh b/install/podman-v5-install.sh index 7b366a9c7..d0f315abf 100644 --- a/install/podman-v5-install.sh +++ b/install/podman-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/postgresql-v5-install.sh b/install/postgresql-v5-install.sh index d9dba2ebb..810dca0a5 100644 --- a/install/postgresql-v5-install.sh +++ b/install/postgresql-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/prometheus-v5-install.sh b/install/prometheus-v5-install.sh index 85009f9a4..71274e886 100644 --- a/install/prometheus-v5-install.sh +++ b/install/prometheus-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/prowlarr-v5-install.sh b/install/prowlarr-v5-install.sh index b4e6a048c..41c47fa48 100644 --- a/install/prowlarr-v5-install.sh +++ b/install/prowlarr-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/radarr-v5-install.sh b/install/radarr-v5-install.sh index 822edb0f3..e7a019877 100644 --- a/install/radarr-v5-install.sh +++ b/install/radarr-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/readarr-v5-install.sh b/install/readarr-v5-install.sh index bffb5dc69..4a8d6b222 100644 --- a/install/readarr-v5-install.sh +++ b/install/readarr-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/rstptoweb-v5-install.sh b/install/rstptoweb-v5-install.sh index 6a7c1d304..227c0d7a8 100644 --- a/install/rstptoweb-v5-install.sh +++ b/install/rstptoweb-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/sabnzbd-v5-install.sh b/install/sabnzbd-v5-install.sh index 9856ec3ae..ee5a2fb05 100644 --- a/install/sabnzbd-v5-install.sh +++ b/install/sabnzbd-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/scrypted-v5-install.sh b/install/scrypted-v5-install.sh index 69805c7f0..a5546fe3c 100644 --- a/install/scrypted-v5-install.sh +++ b/install/scrypted-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/shinobi-v5-install.sh b/install/shinobi-v5-install.sh index 69d1e634a..45a8cc097 100644 --- a/install/shinobi-v5-install.sh +++ b/install/shinobi-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update --fix-missing diff --git a/install/sonarr-v5-install.sh b/install/sonarr-v5-install.sh index 1980b5511..8b1eeda97 100644 --- a/install/sonarr-v5-install.sh +++ b/install/sonarr-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/syncthing-v5-install.sh b/install/syncthing-v5-install.sh index 38c001a1d..74911940b 100644 --- a/install/syncthing-v5-install.sh +++ b/install/syncthing-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/tdarr-v5-install.sh b/install/tdarr-v5-install.sh index 35dc88b0c..e5e9cdb5f 100644 --- a/install/tdarr-v5-install.sh +++ b/install/tdarr-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/technitiumdns-v5-install.sh b/install/technitiumdns-v5-install.sh index 39c50d123..8c7d1369e 100644 --- a/install/technitiumdns-v5-install.sh +++ b/install/technitiumdns-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/transmission-v5-install.sh b/install/transmission-v5-install.sh index f11bbdbfd..0f8706feb 100644 --- a/install/transmission-v5-install.sh +++ b/install/transmission-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/trilium-v5-install.sh b/install/trilium-v5-install.sh index 8a72a790e..3c3cb8a16 100644 --- a/install/trilium-v5-install.sh +++ b/install/trilium-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/ubuntu-v5-install.sh b/install/ubuntu-v5-install.sh index d7569a6f9..21202a71e 100644 --- a/install/ubuntu-v5-install.sh +++ b/install/ubuntu-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/umbrel-v5-install.sh b/install/umbrel-v5-install.sh index 8bfaaadb6..6800d9ed0 100644 --- a/install/umbrel-v5-install.sh +++ b/install/umbrel-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/unifi-v5-install.sh b/install/unifi-v5-install.sh index 6d9ece108..84f8cdfb5 100644 --- a/install/unifi-v5-install.sh +++ b/install/unifi-v5-install.sh @@ -64,6 +64,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -77,6 +78,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/uptimekuma-v5-install.sh b/install/uptimekuma-v5-install.sh index 674bc0258..6ba658aca 100644 --- a/install/uptimekuma-v5-install.sh +++ b/install/uptimekuma-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/vaultwarden-v5-install.sh b/install/vaultwarden-v5-install.sh index b8d5f39ee..21c3f47d2 100644 --- a/install/vaultwarden-v5-install.sh +++ b/install/vaultwarden-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/whisparr-v5-install.sh b/install/whisparr-v5-install.sh index b97cd37aa..360d9ab7a 100644 --- a/install/whisparr-v5-install.sh +++ b/install/whisparr-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/whoogle-v5-install.sh b/install/whoogle-v5-install.sh index 0897cac6d..2aa1607e8 100644 --- a/install/whoogle-v5-install.sh +++ b/install/whoogle-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/wikijs-v5-install.sh b/install/wikijs-v5-install.sh index fb3aecbdd..4f5dd643f 100644 --- a/install/wikijs-v5-install.sh +++ b/install/wikijs-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/wireguard-v5-install.sh b/install/wireguard-v5-install.sh index b36f310d5..4c5d5c111 100644 --- a/install/wireguard-v5-install.sh +++ b/install/wireguard-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR OPTIONS_PATH='/options.conf' cat >$OPTIONS_PATH <<'EOF' diff --git a/install/yunohost-v5-install.sh b/install/yunohost-v5-install.sh index 4598cbd85..50cf173aa 100644 --- a/install/yunohost-v5-install.sh +++ b/install/yunohost-v5-install.sh @@ -62,6 +62,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -75,6 +76,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/zigbee2mqtt-v5-install.sh b/install/zigbee2mqtt-v5-install.sh index 89e08b247..e9bf9173e 100644 --- a/install/zigbee2mqtt-v5-install.sh +++ b/install/zigbee2mqtt-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update diff --git a/install/zwave-js-ui-v5-install.sh b/install/zwave-js-ui-v5-install.sh index 6118ef0fb..d63fe7fcc 100644 --- a/install/zwave-js-ui-v5-install.sh +++ b/install/zwave-js-ui-v5-install.sh @@ -63,6 +63,7 @@ msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" set +e +trap - ERR if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else msg_error "Internet NOT Connected" read -r -p "Would you like to continue anyway? " prompt @@ -76,6 +77,7 @@ fi RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }') if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi set -e +trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apt-get update