From d6e0c46b9a6b84109e29903ce17b815dae186fce Mon Sep 17 00:00:00 2001 From: andryyy Date: Thu, 15 Dec 2016 10:07:46 +0100 Subject: [PATCH] Use entrypoint to sed some vars --- data/Dockerfiles/postfix/postfix.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/Dockerfiles/postfix/postfix.sh b/data/Dockerfiles/postfix/postfix.sh index 6e7aca830..7aefd6122 100755 --- a/data/Dockerfiles/postfix/postfix.sh +++ b/data/Dockerfiles/postfix/postfix.sh @@ -2,6 +2,10 @@ trap "postfix stop" EXIT +sed -i "/^user/c\user = ${DBUSER}" /opt/postfix/conf/sql/* +sed -i "/^password/c\password = ${DBPASS}" /opt/postfix/conf/sql/* +sed -i "/^dbname/c\dbname = ${DBNAME}" /opt/postfix/conf/sql/* + postfix -c /opt/postfix/conf start sleep infinity