several improvement and armonisation in filefct.sh, module auth and patch_snmp improved
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
# * PKGSEL: List of package to install
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
export VER_install_pkg="0.1.4"
|
||||
export VER_install_pkg="0.1.5"
|
||||
export DEP_install_pkg="upgrade_dist"
|
||||
|
||||
install_pkg()
|
||||
@@ -29,9 +29,9 @@ install_pkg()
|
||||
for pkg in $PKGS_BLACKLIST; do
|
||||
prnt I "Placing $pkg into the blacklist..."
|
||||
local dest=/etc/apt/preferences.d/blacklist_$pkg
|
||||
installfile pkgman/blacklist.conf $dest &&
|
||||
install_file pkgman/blacklist.conf $dest &&
|
||||
sed -i -e "s/@pkg@/pkg/" $dest
|
||||
tagfile $dest
|
||||
tag_file $dest
|
||||
|
||||
# If blacklisted we suppose uninstall as well (if neeeded)
|
||||
pkgrm $pkg
|
||||
@@ -59,6 +59,7 @@ precheck_install_pkg()
|
||||
|
||||
if [[ -z PKGS_BLACKLIST ]]; then
|
||||
prnt W "The packages $pkg will be placed into the blacklist !"
|
||||
file_must_exists pkgman/blacklist.conf
|
||||
fi
|
||||
|
||||
if [[ -z $PKGSEL ]]; then
|
||||
@@ -66,7 +67,6 @@ precheck_install_pkg()
|
||||
else
|
||||
prnt I "$(echo $PKGSEL | wc -w) additionnal package have to be installed."
|
||||
fi
|
||||
file_exists pkgman/blacklist.conf
|
||||
}
|
||||
|
||||
export -f install_pkg
|
||||
|
||||
Reference in New Issue
Block a user