mirror of
https://codeberg.org/B3rtl/Ubuntu-Setup-Skripte
synced 2025-06-28 11:26:08 +02:00
apt proxy heißt er
This commit is contained in:
parent
c9b64f029a
commit
b59d74f0fd
1 changed files with 7 additions and 3 deletions
|
@ -10,9 +10,13 @@ export DEBIAN_FRONTEND=noninteractive
|
||||||
DPKG_CFG_FRAGMENT=/etc/dpkg/dpkg.cfg.d/non-interactive
|
DPKG_CFG_FRAGMENT=/etc/dpkg/dpkg.cfg.d/non-interactive
|
||||||
|
|
||||||
# ChCh apt proxy benutzen (bedingt = wenn da)
|
# ChCh apt proxy benutzen (bedingt = wenn da)
|
||||||
if [ ping -n 1 apt-cache ]; then
|
ping -c 1 apt-proxy
|
||||||
echo 'Acquire::https::Proxy "http://apt-cache:3142";' > /etc/apt/apt.conf.d/01aptproxy
|
if [ "$?" -eq "0" ]; then
|
||||||
echo 'Acquire::http::Proxy "http://apt-cache:3142";' >> /etc/apt/apt.conf.d/01aptproxy
|
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
|
fi
|
||||||
|
|
||||||
# Linux distro
|
# Linux distro
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue