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,15 +11,15 @@
# * SYSLOG_SRV: the syslog server name
# ------------------------------------------------------------------------------
export VER_conf_syslog="0.0.3"
export VER_conf_syslog="0.0.4"
conf_syslog()
{
local syslogconf=/etc/rsyslog.conf
prnt I "Configuration de rsyslog..."
backupdist $syslogconf
installfile rsyslog.conf $syslogconf
tagfile $syslogconf
backup_dist $syslogconf
install_file rsyslog.conf $syslogconf
tag_file $syslogconf
sed -i -e "s/@SYSLOG_SRV@/$SYSLOG_SRV/" $syslogconf
svc_restart rsyslog
}
@@ -30,7 +30,7 @@ precheck_conf_syslog()
prnt E "Undeclared syslog server name !"
die 181
else
file_exists rsyslog.conf
file_must_exists rsyslog.conf
fi
}