28 lines
804 B
Bash
28 lines
804 B
Bash
# ------------------------------------------------------------------------------
|
|
# Configure Rsyslog
|
|
# Copyright (c) 2019-2021 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
|
|
# ------------------------------------------------------------------------------
|
|
# This file is distributed under 3-clause BSD license.
|
|
# The complete license agreement can be obtained at:
|
|
# https://opensource.org/licenses/BSD-3-Clause
|
|
# ------------------------------------------------------------------------------
|
|
|
|
export VER_conf_syslog="0.0.1"
|
|
|
|
conf_syslog()
|
|
{
|
|
prnt I "Configuration de rsyslog..."
|
|
backupdist /etc/rsyslog.conf
|
|
installfile rsyslog.conf /etc/rsyslog.conf
|
|
svc_restart rsyslog
|
|
}
|
|
|
|
precheck_conf_syslog()
|
|
{
|
|
: # Nothing to check
|
|
}
|
|
|
|
export -f conf_syslog
|
|
export -f precheck_conf_syslog
|
|
|