Task: Add focal script for apt mirror

This commit is contained in:
Sambo Chea 2021-09-03 11:23:50 +07:00
parent ff9eb7c8a6
commit 0e9e608705

View File

@ -1,5 +1,6 @@
#!/bin/sh -e
tee -a sources.list << EOF
deb http://apt.internal.cubetiqs.com/ubuntu focal main restricted
deb http://apt.internal.cubetiqs.com/ubuntu focal-updates main restricted
deb http://apt.internal.cubetiqs.com/ubuntu focal universe
@ -9,4 +10,12 @@ deb http://apt.internal.cubetiqs.com/ubuntu focal-updates multiverse
deb http://apt.internal.cubetiqs.com/ubuntu focal-backports main restricted universe multiverse
deb http://apt.internal.cubetiqs.com/ubuntu focal-security main restricted
deb http://apt.internal.cubetiqs.com/ubuntu focal-security universe
deb http://apt.internal.cubetiqs.com/ubuntu focal-security multiverse
deb http://apt.internal.cubetiqs.com/ubuntu focal-security multiverse
EOF
mv /etc/apt/sources.list /etc/apt/sources.list.bak
mv sources.list /etc/apt/sources.list
echo ""
echo "======================= New Sources ======================="
cat /etc/apt/sources.list