From 125b76e463353b92cf6d3c7cfdad40f2a070028d Mon Sep 17 00:00:00 2001
From: pierreozoux <pierre@ozoux.net>
Date: Wed, 15 Jul 2015 15:56:56 +0100
Subject: [PATCH] makes known use mail from ENV

---
 dockerfiles/services/known/run-known.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dockerfiles/services/known/run-known.sh b/dockerfiles/services/known/run-known.sh
index 2d60492..309699f 100644
--- a/dockerfiles/services/known/run-known.sh
+++ b/dockerfiles/services/known/run-known.sh
@@ -74,8 +74,10 @@ echo "dbhost = '${DB_HOST}'"       >> /app/config.ini
 echo "dbuser = '${DB_USER}'"       >> /app/config.ini
 echo "dbpass = '${DB_PASS}'"       >> /app/config.ini
 echo "url = 'https://${URL}/'"     >> /app/config.ini
-echo "smtp_host = 172.17.42.1"     >> /app/config.ini
-echo "smtp_port = 25"              >> /app/config.ini
+echo "smtp_host = ${MAIL_HOST}"    >> /app/config.ini
+echo "smtp_port = ${MAIL_PORT}"    >> /app/config.ini
+echo "smtp_username = ${MAIL_USER}" >> /app/config.ini
+echo "smtp_password = ${MAIL_PASS}" >> /app/config.ini
 
 exec /run.sh
 
-- 
GitLab