aboutsummaryrefslogtreecommitdiff
path: root/bootstrap.d/31-logging.sh
blob: 740161b6242730ab5e67258e1edc48bcc13ae232 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#
# Setup Logging
#

# Load utility functions
. ./functions.sh

# Disable rsyslog
if [ "$ENABLE_RSYSLOG" = false ] ; then
  sed -i "s|[#]*ForwardToSyslog=yes|ForwardToSyslog=no|g" $R/etc/systemd/journald.conf
  chroot_exec systemctl disable rsyslog
  chroot_exec apt-get -qq -y --force-yes purge rsyslog
fi