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