Bedingte Ausführung von Apt-proxy

This commit is contained in:
Robert Köpferl 2021-04-07 14:16:18 +02:00
parent f4708b897d
commit c9b64f029a
1 changed files with 5 additions and 5 deletions

View File

@ -9,11 +9,11 @@
export DEBIAN_FRONTEND=noninteractive
DPKG_CFG_FRAGMENT=/etc/dpkg/dpkg.cfg.d/non-interactive
# ChCh apt proxy benutzen
echo 'Acquire::https::Proxy "http://172.23.92.240:3142";' > /etc/apt/apt.conf.d/01aptproxy
echo 'Acquire::http::Proxy "http://172.23.92.240:3142";' >> /etc/apt/apt.conf.d/01aptproxy
# ChCh apt proxy benutzen (bedingt = wenn da)
if [ ping -n 1 apt-cache ]; then
echo 'Acquire::https::Proxy "http://apt-cache:3142";' > /etc/apt/apt.conf.d/01aptproxy
echo 'Acquire::http::Proxy "http://apt-cache:3142";' >> /etc/apt/apt.conf.d/01aptproxy
fi
# Linux distro
script_distro='Kubuntu Linux 20.4.0'