mirror of https://github.com/tteck/Proxmox.git
Update ubuntu-v5-install.sh
This commit is contained in:
parent
20d9272bbd
commit
e7cd08fa6e
|
@ -71,11 +71,11 @@ 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/ $DISTRO main
|
||||
deb-src http://mirror.vcu.edu/pub/gnu+linux/ubuntu/ $DISTRO main
|
||||
EOF
|
||||
#CODENAME=$(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/ $CODENAME main
|
||||
#deb-src http://mirror.vcu.edu/pub/gnu+linux/ubuntu/ $CODENAME main
|
||||
#EOF
|
||||
|
||||
msg_info "Updating Container OS"
|
||||
$STD apt-get update
|
||||
|
|
Loading…
Reference in New Issue