mirror of
https://github.com/phusion/baseimage-docker.git
synced 2026-03-26 04:18:46 +00:00
fixed syslog warning when using --tty as described in #468
This commit is contained in:
@@ -7,6 +7,13 @@ set -em
|
||||
if [ ! -S /dev/log ]; then rm -f /dev/log; fi
|
||||
if [ ! -S /var/lib/syslog-ng/syslog-ng.ctl ]; then rm -f /var/lib/syslog-ng/syslog-ng.ctl; fi
|
||||
|
||||
# determine output mode on /dev/stdout because of the issue documented at https://github.com/phusion/baseimage-docker/issues/468
|
||||
if [ -p /dev/stdout ]; then
|
||||
sed -i 's/##SYSLOG_OUTPUT_MODE_DEV_STDOUT##/pipe/' /etc/syslog-ng/syslog-ng.conf
|
||||
else
|
||||
sed -i 's/##SYSLOG_OUTPUT_MODE_DEV_STDOUT##/file/' /etc/syslog-ng/syslog-ng.conf
|
||||
fi
|
||||
|
||||
PIDFILE="/var/run/syslog-ng.pid"
|
||||
SYSLOGNG_OPTS=""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user