conf_disk: bug fixes, splitted init function to library, language concistancy fixes
This commit is contained in:
@@ -1,22 +1,32 @@
|
||||
# Installation des paquets
|
||||
|
||||
export VER_install_pkg="0.1.0"
|
||||
export VER_install_pkg="0.1.1"
|
||||
|
||||
install_pkg()
|
||||
{
|
||||
# Remove unnecessary packages
|
||||
[[ -n $PKGS_RMLIST ]] &&
|
||||
prnt I "Suppression de paquets supperflus..." &&
|
||||
pkgrem $PKGS_RMLIST
|
||||
|
||||
# Blacklist some anoying packages (and remove them if needed)
|
||||
if [[ -n PKGS_BLACKLIST ]]; then
|
||||
for pkg in $PKGS_BLACKLIST; do
|
||||
prnt I "Mise du paquet $pkg en liste noire..."
|
||||
local dest=/usr/apt/preferences.d/blacklist_$pkg.conf
|
||||
installfile blacklist.conf $dest &&
|
||||
sed -i -e "s/@pkg@/pkg/" $dest
|
||||
|
||||
# If blacklisted we suppose uninstall as well (if neeeded)
|
||||
pkgrem $pkg
|
||||
done
|
||||
fi
|
||||
|
||||
# Cleaning
|
||||
prnt I "Suppression des paquets résiduels le cas échéant..."
|
||||
pkgautorem
|
||||
|
||||
# Install all the configured packages
|
||||
[[ -n $PKGSEL ]] &&
|
||||
prnt I "Installation de la sélection de paquets..." &&
|
||||
pkginst $PKGSEL
|
||||
|
||||
Reference in New Issue
Block a user