Skip to content
Snippets Groups Projects
Verified Commit 46154174 authored by David Beniamine's avatar David Beniamine
Browse files

Make all apt not interactive

parent dea12233
Branches
No related tags found
No related merge requests found
......@@ -31,8 +31,9 @@ exec 2>>"$fichierlog"
# Suppression de la référence au dépôt Primtux2-Lubuntu
sed -i '/PrimTux-Lubuntu/d' /etc/apt/sources.list.d/primtux.list
apt-get update
DEBIAN_FRONTEND='noninteractive' apt-get -y dist-upgrade
DEBIAN_FRONTEND='noninteractive' apt-get -o Dpkg::Options::="--force-confold" update
DEBIAN_FRONTEND='noninteractive' apt-get -o Dpkg::Options::="--force-confold" update
-y dist-upgrade
# Vérifie l'OS
archi=$(uname -m)
......@@ -124,8 +125,8 @@ if [ "$version" = "8 (jessie)" ]
fi
# Harmonisation des paquets
sudo apt-get remove -y --purge handymenu-primtux2 handymenu-mini-primtux2 handymenu-maxi-primtux2 handymenu-super-primtux2 qalculate-gtk
apt-get install -y handymenu thunderbird thunderbird-l10n-fr gnome-calculator geany mothsart-wallpapers-primtux gspeech xfce4-notifyd gir1.2-gstreamer-1.0
sudo DEBIAN_FRONTEND='noninteractive' apt-get remove -y --purge handymenu-primtux2 handymenu-mini-primtux2 handymenu-maxi-primtux2 handymenu-super-primtux2 qalculate-gtk
DEBIAN_FRONTEND='noninteractive' apt-get -o Dpkg::Options::="--force-confold" install -y handymenu thunderbird thunderbird-l10n-fr gnome-calculator geany mothsart-wallpapers-primtux gspeech xfce4-notifyd gir1.2-gstreamer-1.0
# Rétablissement de la propriété de chaque home
chown -R 01-mini:01-mini /home/01-mini
......@@ -247,6 +248,6 @@ if ! [ -e "/etc/primtux_version" ]
fi
fi
apt-get update && apt-get dist-upgrade
DEBIAN_FRONTEND='noninteractive' apt-get -o Dpkg::Options::="--force-confold" update && DEBIAN_FRONTEND='noninteractive' apt-get -o Dpkg::Options::="--force-confold" dist-upgrade
exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment