From 3f6ce0591e1880c3bab81d26ec5a968f8b951e30 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 29 Mar 2018 14:58:56 +0200 Subject: [PATCH] Implementing config_rsyslog_to_remote() in bin/postinst --- bin/postinst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/bin/postinst b/bin/postinst index 8e074db..04fd019 100644 --- a/bin/postinst +++ b/bin/postinst @@ -680,6 +680,21 @@ install_clamav() { } +#----------------------------------------------------------- +config_rsyslog_to_remote() { + + echo + log "Adding loghost to rsyslog configuration ..." + + mkdir -pv /etc/rsyslog.d + + cat <<-EOF > "/etc/rsyslog.d/loghost.conf" + \$ModLoad imklog + *.* @loghost.pixelpark.com:514 + EOF + +} + #----------------------------------------------------------- main() { @@ -707,6 +722,7 @@ main() { dist_upgrade install_clamav install_puppet + config_rsyslog_to_remote remove_ipv6_localhost tweak_grub -- 2.39.5