31-logging.sh
13 lines
| 301 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 | ||||
Jan Wagner
|
r72 | if [ "$ENABLE_RSYSLOG" = false ] ; then | ||
drtyhlpr
|
r94 | sed -i "s|[#]*ForwardToSyslog=yes|ForwardToSyslog=no|g" "${ETC_DIR}/systemd/journald.conf" | ||
Filip Pytloun
|
r56 | chroot_exec systemctl disable rsyslog | ||
drtyhlpr
|
r142 | chroot_exec apt-get -qq -y purge rsyslog | ||
Filip Pytloun
|
r56 | fi | ||