31-logging.sh
13 lines
| 305 B
| application/x-sh
|
BashLexer
/ bootstrap.d / 31-logging.sh
Filip Pytloun
|
r56 | # | ||
Jan Wagner
|
r67 | # Setup Logging | ||
Filip Pytloun
|
r56 | # | ||
Jan Wagner
|
r67 | # Load utility functions | ||
Filip Pytloun
|
r56 | . ./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 purge -q -y --force-yes rsyslog | ||||
fi | ||||