From 4036588c652152a9697371bac0336b3704242ec8 Mon Sep 17 00:00:00 2001 From: "Thomas A. Kilian" Date: Wed, 7 Mar 2018 19:31:10 +0100 Subject: [PATCH] Setting quiet mode on invoke-rc.d (Closes: #792) This prevents a daily error message --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b50ff946..b94fe0e8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -199,7 +199,9 @@ RUN sed -i -r "/^#?compress/c\compress\ncopytruncate" /etc/logrotate.conf && \ sed -i -r 's|/var/log/mail|/var/log/mail/mail|g' /etc/logrotate.d/rsyslog && \ # prevent syslog logrotate warnings \ sed -i -e 's/\(printerror "could not determine current runlevel"\)/#\1/' /usr/sbin/invoke-rc.d && \ - sed -i -e 's/^\(POLICYHELPER=\).*/\1/' /usr/sbin/invoke-rc.d + sed -i -e 's/^\(POLICYHELPER=\).*/\1/' /usr/sbin/invoke-rc.d && \ + # prevent email when /sbin/init or init system is not existing \ + sed -i -e 's/invoke-rc.d rsyslog rotate > \/dev\/null/invoke-rc.d rsyslog --quiet rotate > \/dev\/null/g' /etc/logrotate.d/rsyslog # Get LetsEncrypt signed certificate RUN curl -s https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem > /etc/ssl/certs/lets-encrypt-x3-cross-signed.pem