several improvement and armonisation in filefct.sh, module auth and patch_snmp improved
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user