added tagfile and make use of it in modules
This commit is contained in:
@@ -11,14 +11,16 @@
|
||||
# * SYSLOG_SRV: the syslog server name
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
export VER_conf_syslog="0.0.2"
|
||||
export VER_conf_syslog="0.0.3"
|
||||
|
||||
conf_syslog()
|
||||
{
|
||||
local syslogconf=/etc/rsyslog.conf
|
||||
prnt I "Configuration de rsyslog..."
|
||||
backupdist /etc/rsyslog.conf
|
||||
installfile rsyslog.conf /etc/rsyslog.conf
|
||||
sed -i -e "s/@SYSLOG_SRV@/$SYSLOG_SRV/" /etc/rsyslog.conf
|
||||
backupdist $syslogconf
|
||||
installfile rsyslog.conf $syslogconf
|
||||
tagfile $syslogconf
|
||||
sed -i -e "s/@SYSLOG_SRV@/$SYSLOG_SRV/" $syslogconf
|
||||
svc_restart rsyslog
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user