mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-05-16 05:08:08 +00:00
Remove mirror selection
Some Debian mirrors have not been synced correctly, disable automatic mirror selection for now.
This commit is contained in:
parent
d4b7cc15e9
commit
9ec1992929
1 changed files with 14 additions and 14 deletions
|
@ -277,21 +277,21 @@ function fuCHECKNET {
|
||||||
# Install T-Pot dependencies
|
# Install T-Pot dependencies
|
||||||
function fuGET_DEPS {
|
function fuGET_DEPS {
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
# Determine fastest mirror
|
# # Determine fastest mirror
|
||||||
echo
|
# echo
|
||||||
echo "### Determine fastest mirror for your location."
|
# echo "### Determine fastest mirror for your location."
|
||||||
echo
|
# echo
|
||||||
netselect-apt -n -a amd64 unstable && cp sources.list /etc/apt/
|
# netselect-apt -n -a amd64 unstable && cp sources.list /etc/apt/
|
||||||
mySOURCESCHECK=$(cat /etc/apt/sources.list | grep -c unstable)
|
# mySOURCESCHECK=$(cat /etc/apt/sources.list | grep -c unstable)
|
||||||
if [ "$mySOURCESCHECK" == "0" ]
|
# if [ "$mySOURCESCHECK" == "0" ]
|
||||||
then
|
# then
|
||||||
echo "### Automatic mirror selection failed, using main mirror."
|
# echo "### Automatic mirror selection failed, using main mirror."
|
||||||
# Point to Debian (Sid, unstable)
|
# Point to Debian (Sid, unstable)
|
||||||
tee /etc/apt/sources.list <<EOF
|
tee /etc/apt/sources.list <<EOF
|
||||||
deb http://deb.debian.org/debian unstable main contrib non-free
|
deb http://deb.debian.org/debian unstable main contrib non-free
|
||||||
deb-src http://deb.debian.org/debian unstable main contrib non-free
|
deb-src http://deb.debian.org/debian unstable main contrib non-free
|
||||||
EOF
|
EOF
|
||||||
fi
|
# fi
|
||||||
echo
|
echo
|
||||||
echo "### Getting update information."
|
echo "### Getting update information."
|
||||||
echo
|
echo
|
||||||
|
|
Loading…
Reference in a new issue