|
|
@ -63,6 +63,7 @@ msg_ok "Set up Container OS"
|
|
|
|
msg_ok "Network Connected: ${BL}$(hostname -I)"
|
|
|
|
msg_ok "Network Connected: ${BL}$(hostname -I)"
|
|
|
|
|
|
|
|
|
|
|
|
set +e
|
|
|
|
set +e
|
|
|
|
|
|
|
|
trap - ERR
|
|
|
|
if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
|
|
|
|
if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
|
|
|
|
msg_error "Internet NOT Connected"
|
|
|
|
msg_error "Internet NOT Connected"
|
|
|
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
|
|
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
|
|
@ -76,6 +77,7 @@ fi
|
|
|
|
RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
|
|
|
|
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
|
|
|
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
|
|
|
set -e
|
|
|
|
set -e
|
|
|
|
|
|
|
|
trap 'error_handler $LINENO "$BASH_COMMAND"' ERR
|
|
|
|
|
|
|
|
|
|
|
|
msg_info "Updating Container OS"
|
|
|
|
msg_info "Updating Container OS"
|
|
|
|
$STD apt-get update --fix-missing
|
|
|
|
$STD apt-get update --fix-missing
|
|
|
|