several improvement and armonisation in filefct.sh, module auth and patch_snmp improved

This commit is contained in:
2022-01-27 13:17:56 +01:00
parent baac34cb85
commit 55a9e49101
16 changed files with 204 additions and 116 deletions

View File

@@ -11,7 +11,7 @@
# none
# ------------------------------------------------------------------------------
export VER_conf_ssh="0.1.1"
export VER_conf_ssh="0.1.2"
export DEP_conf_ssh="upgrade_dist"
conf_ssh()
@@ -24,9 +24,9 @@ conf_ssh()
prnt I "Installation des fichiers de configuration de SSH..."
for f in /etc/ssh/ssh{,d}_config; do
backupdist $f
installfile ssh/$(basename $f) $f
tagfile $f
backup_dist $f
install_file ssh/$(basename $f) $f
tag_file $f
done
sed -i -e "s/@SSHD_PERMITROOT_RANGE@/$SSHD_PERMITROOT_RANGE/" /etc/ssh/sshd_config
@@ -36,7 +36,7 @@ conf_ssh()
precheck_conf_ssh()
{
file_exists ssh/ssh{,d}_config
file_must_exists ssh/ssh{,d}_config
}
export -f conf_ssh