5
0
Fork 0
mirror of https://codeberg.org/Computertruhe/Setup-Skripte.git synced 2025-06-28 11:26:18 +02:00

aptproxy, pakete konsolidiert

This commit is contained in:
Robert 2024-10-25 09:16:22 +02:00
parent 22ab72a4cc
commit c90aadaee8
2 changed files with 55 additions and 25 deletions

View file

@ -114,17 +114,11 @@ echo "\
"
e "Starte initiales Setup für Rechner mit frisch installiertem '${script_distro}' …"
# Use APT proxy if available.
ping -c 1 apt-proxy > /dev/null 2>&1
if [ "$?" -eq "0" ]; then
e "Nutze APT-Proxy."
echo 'Acquire::https::Proxy "http://apt-proxy:3142";' > /etc/apt/apt.conf.d/01aptproxy
echo 'Acquire::http::Proxy "http://apt-proxy:3142";' >> /etc/apt/apt.conf.d/01aptproxy
else
e "Kein APT-Proxy gefunden."
fi
echo 'Dpkg::Options "--force-unsafe-io";' >> /etc/apt/apt.conf.d/01aptproxy
# Generell auto-apt-proxy installieren
# tut nicht weh und erweitert apt jetzt und in Zukunft, einen host apt-proxy oder andere
# z.b. in SRV-Records benannte caches zu verwenden. gut für spätere updates.
e "Apt proxy automatisch verwenden"
apt install auto-apt-proxy
###
# Automatic installation