Mint-Skript ebenfalls mit oem-config ausgestattet und apt-proxy verwenden, falls da

This commit is contained in:
Robert Köpferl 2021-05-02 20:27:33 +02:00
parent 8bc989636d
commit f1743ea11b
1 changed files with 19 additions and 1 deletions

View File

@ -18,6 +18,7 @@ packages=(
gimp
inkscape
pinta
krita
# Office
libreoffice
@ -26,7 +27,7 @@ packages=(
keepassxc
# Games
0ad
#0ad
beneath-a-steel-sky
billard-gl
blobby
@ -59,6 +60,7 @@ packages=(
# System management
gparted
oem-config
# Tools
f3
@ -167,6 +169,18 @@ echo "\
"
e "Starte initiales Setup für Rechner mit frisch installiertem '${script_distro}' …"
# 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
###
@ -230,4 +244,8 @@ dconf update
###
# Finalisation
###
e "Apt proxy wieder entfernen..."
rm /etc/apt/apt.conf.d/01aptproxy
e "Initiales Setup beendet."
oem-config-prepare