Update omada-v5-install.sh

pull/1025/head
tteckster 3 years ago committed by GitHub
parent 98df486d1a
commit b038152e35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      install/omada-v5-install.sh

@ -71,6 +71,12 @@ 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
CODENAME=$(cat /etc/*release | grep "UBUNTU_CODENAME" | awk '{print substr($1, 17, length($1)) }')
cat <<EOF >/etc/apt/sources.list
deb http://mirror.genesisadaptive.com/ubuntu/ $CODENAME main
deb-src http://mirror.genesisadaptive.com/ubuntu/ $CODENAME main
EOF
msg_info "Updating Container OS" msg_info "Updating Container OS"
$STD apt-get update $STD apt-get update
$STD apt-get -y upgrade $STD apt-get -y upgrade

Loading…
Cancel
Save