From 02d52398ddde0aca356adfa687825f6d5782aac2 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Wed, 6 Jul 2016 12:44:08 +0200 Subject: [PATCH] update postfix run script --- Dockerfile | 2 +- rootfs/etc/services.d/postfix/run | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b18e165..106b096 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM thallian/confd-env:latest -RUN apk add --no-cache postfix postfix-ldap bash +RUN apk add --no-cache postfix postfix-ldap EXPOSE 25 587 diff --git a/rootfs/etc/services.d/postfix/run b/rootfs/etc/services.d/postfix/run index e4582f6..c64b342 100644 --- a/rootfs/etc/services.d/postfix/run +++ b/rootfs/etc/services.d/postfix/run @@ -1,8 +1,9 @@ -#!/usr/bin/with-contenv bash +#!/usr/bin/with-contenv sh trap "postfix stop" SIGINT trap "postfix stop" SIGTERM trap "postfix reload" SIGHUP postfix start -sleep infinity +sleep 20 +tail -f /var/log/mail.log