From a2f65912121041cbccf18211ee9db79f696d942e Mon Sep 17 00:00:00 2001 From: Johan Smits Date: Sat, 19 Aug 2017 10:49:02 +0200 Subject: [PATCH] Fix the hook that restarts the amavis server and causes it to (#699) detach from supervisor. --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 84f97c37..8fbdecb9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -115,8 +115,9 @@ RUN sed -i -e 's/include_try \/usr\/share\/dovecot\/protocols\.d/include_try \/e COPY target/dovecot/dovecot-ldap.conf.ext /etc/dovecot COPY target/postfix/ldap-users.cf target/postfix/ldap-groups.cf target/postfix/ldap-aliases.cf target/postfix/ldap-domains.cf /etc/postfix/ -# Enables Spamassassin CRON updates -RUN sed -i -r 's/^(CRON)=0/\1=1/g' /etc/default/spamassassin +# Enables Spamassassin CRON updates and update hook for supervisor +RUN sed -i -r 's/^(CRON)=0/\1=1/g' /etc/default/spamassassin && \ + sed -i -r 's/^\$INIT restart/supervisorctl restart amavis/g' /etc/spamassassin/sa-update-hooks.d/amavisd-new # Enables Postgrey COPY target/postgrey/postgrey /etc/default/postgrey