From d1aa897abfd29125d7f0c62bcfe5a76c12403a3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20K=C3=B6pferl?= Date: Sat, 17 Apr 2021 21:10:59 +0200 Subject: [PATCH] Apt ohne sync. ping test geht nun --- kubuntu/kubuntu_late_command.sh | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/kubuntu/kubuntu_late_command.sh b/kubuntu/kubuntu_late_command.sh index 3eb9093..b35bb80 100644 --- a/kubuntu/kubuntu_late_command.sh +++ b/kubuntu/kubuntu_late_command.sh @@ -9,16 +9,6 @@ export DEBIAN_FRONTEND=noninteractive DPKG_CFG_FRAGMENT=/etc/dpkg/dpkg.cfg.d/non-interactive -# ChCh apt proxy benutzen (bedingt = wenn da) -ping -c 1 apt-proxy -if [ "$?" -eq "0" ]; then - 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 - e "Proxy Apt-Aktiv" -else - e "Kein Apt-Proxy" -fi - # Linux distro script_distro='Kubuntu Linux 20.4.0' @@ -179,6 +169,18 @@ echo "\ " e "Starte initiales Setup für Rechner mit frisch installiertem '${script_distro}' …" +# ChCh apt proxy benutzen (bedingt = wenn da) +ping -c 1 apt-proxy +if [ "$?" -eq "0" ]; then + 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 + e "Proxy Apt-Aktiv" +else + e "Kein Apt-Proxy" +fi +echo 'Dpkg::Options "--force-unsafe-io";' >> /etc/apt/apt.conf.d/01aptproxy + + ### # Automatic installation ###