Update 'apt-mirror.sh'

This commit is contained in:
Sambo Chea 2021-09-03 11:02:58 +07:00
parent 0ea911ed3b
commit 115d8fabc2

View File

@ -2,7 +2,7 @@
UBUNTU_VERSION=$(lsb_release -cs)
tee -a aptmirror.list << EOF
tee -a sources.list << EOF
deb http://apt.internal.cubetiqs.com/ubuntu ${UBUNTU_VERSION} main restricted
deb http://apt.internal.cubetiqs.com/ubuntu ${UBUNTU_VERSION}-updates main restricted
deb http://apt.internal.cubetiqs.com/ubuntu ${UBUNTU_VERSION} universe
@ -13,4 +13,7 @@ deb http://apt.internal.cubetiqs.com/ubuntu ${UBUNTU_VERSION}-backports main res
deb http://apt.internal.cubetiqs.com/ubuntu ${UBUNTU_VERSION}-security main restricted
deb http://apt.internal.cubetiqs.com/ubuntu ${UBUNTU_VERSION}-security universe
deb http://apt.internal.cubetiqs.com/ubuntu ${UBUNTU_VERSION}-security multiverse
EOF
EOF
mv /etc/apt/sources.list /etc/apt/sources.list.bak
mv sources.list /etc/apt/sources.list