1
0
mirror of /repos/baseimage-docker.git synced 2025-12-30 08:01:31 +01:00

Remove /dev/log if it's a file a file.

Fixes https://github.com/phusion/baseimage-docker/pull/25
This commit is contained in:
Kingdon Barrett 2014-04-30 08:45:49 -04:00 committed by Hongli Lai (Phusion)
parent 90ff4682df
commit 6acfd8794d

View File

@ -1,6 +1,11 @@
#!/bin/sh
set -e
# If /dev/log is either a named pipe or it was placed there accidentally,
# e.g. because of the issue documented at https://github.com/phusion/baseimage-docker/pull/25,
# then we remove it.
if [ ! -S /dev/log ]; then rm -f /dev/log; fi
SYSLOGNG_OPTS=""
[ -r /etc/default/syslog-ng ] && . /etc/default/syslog-ng