Update ubuntu-v5-install.sh

This commit is contained in:
tteckster 2023-02-06 08:50:52 -05:00 committed by GitHub
parent 293520e57c
commit 20d9272bbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -71,9 +71,10 @@ 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
DISTRO=$(cat /etc/*release | grep "UBUNTU_CODENAME" | awk '{print substr($1, 17, length($1)) }')
cat <<EOF >/etc/apt/sources.list
deb http://mirror.vcu.edu/pub/gnu+linux/ubuntu/ jammy main
deb-src http://mirror.vcu.edu/pub/gnu+linux/ubuntu/ jammy main
deb http://mirror.vcu.edu/pub/gnu+linux/ubuntu/ $DISTRO main
deb-src http://mirror.vcu.edu/pub/gnu+linux/ubuntu/ $DISTRO main
EOF
msg_info "Updating Container OS"