Files
rpiGenImage/bootstrap.d/31-logging.sh

14 lines
301 B
Bash
Raw Normal View History

2025-10-26 18:06:53 +01:00
#
# Setup Logging
#
# Load utility functions
. ./functions.sh
# Disable rsyslog
if [ "$ENABLE_RSYSLOG" = false ] ; then
sed -i "s|[#]*ForwardToSyslog=yes|ForwardToSyslog=no|g" "${ETC_DIR}/systemd/journald.conf"
chroot_exec systemctl disable rsyslog
chroot_exec apt-get -qq -y purge rsyslog
fi