install_pkg.sh: translated frppm french to english

This commit is contained in:
2022-01-07 17:57:02 +01:00
parent 6367dbee27
commit 89b838dac3

View File

@@ -13,21 +13,21 @@
# * PKGSEL: List of package to install # * PKGSEL: List of package to install
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
export VER_install_pkg="0.1.3" export VER_install_pkg="0.1.4"
export DEP_install_pkg="upgrade_dist" export DEP_install_pkg="upgrade_dist"
install_pkg() install_pkg()
{ {
# Remove unnecessary packages # Remove unnecessary packages
if [[ -n $PKGS_RMLIST ]]; then if [[ -n $PKGS_RMLIST ]]; then
prnt I "Suppression de paquets supperflus..." prnt I "Removing some undesired packages..."
pkgrm $PKGS_RMLIST pkgrm $PKGS_RMLIST
fi fi
# Blacklist some anoying packages (and remove them if needed) # Blacklist some anoying packages (and remove them if needed)
if [[ -n PKGS_BLACKLIST ]]; then if [[ -n PKGS_BLACKLIST ]]; then
for pkg in $PKGS_BLACKLIST; do for pkg in $PKGS_BLACKLIST; do
prnt I "Mise du paquet $pkg en liste noire..." prnt I "Placing $pkg into the blacklist..."
local dest=/etc/apt/preferences.d/blacklist_$pkg local dest=/etc/apt/preferences.d/blacklist_$pkg
installfile pkgman/blacklist.conf $dest && installfile pkgman/blacklist.conf $dest &&
sed -i -e "s/@pkg@/pkg/" $dest sed -i -e "s/@pkg@/pkg/" $dest
@@ -40,31 +40,31 @@ install_pkg()
# Install all the configured packages # Install all the configured packages
if [[ -n $PKGSEL ]]; then if [[ -n $PKGSEL ]]; then
prnt I "Installation de la sélection de paquets..." prnt I "Installing the package selection..."
pkginst $PKGSEL pkginst $PKGSEL
fi fi
# Cleaning # Cleaning
prnt I "Suppression des paquets résiduels le cas échéant..." prnt I "Removing not needed anymore package..."
pkgautorm pkgautorm
} }
precheck_install_pkg() precheck_install_pkg()
{ {
if [[ -z PKGS_RMLIST ]]; then if [[ -z PKGS_RMLIST ]]; then
prnt I "Aucun paquet à désinstaller" prnt I "No package to remove."
else else
prnt I "$(echo $PKGS_RMLIST | wc -w) paquets à supprimer." prnt I "$(echo $PKGS_RMLIST | wc -w) package to remove."
fi fi
if [[ -z PKGS_BLACKLIST ]]; then if [[ -z PKGS_BLACKLIST ]]; then
prnt W "Les paquets $pkg seront placés en liste noire !" prnt W "The packages $pkg will be placed into the blacklist !"
fi fi
if [[ -z $PKGSEL ]]; then if [[ -z $PKGSEL ]]; then
prnt W "Pas de paquet additionel à installer !" prnt W "No additionnal package to install !"
else else
prnt I "$(echo $PKGSEL | wc -w) paquets additionels seront installés." prnt I "$(echo $PKGSEL | wc -w) additionnal package have to be installed."
fi fi
file_exists pkgman/blacklist.conf file_exists pkgman/blacklist.conf
} }