From b2f9b8ac6f33ea7dbe1d3fb3f6bbeaffa2227754 Mon Sep 17 00:00:00 2001 From: Michael Lewkowski Date: Wed, 1 Jun 2016 08:14:11 +0200 Subject: made tls optional --- start-munin.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/start-munin.sh b/start-munin.sh index 954a112..bed2e80 100644 --- a/start-munin.sh +++ b/start-munin.sh @@ -4,13 +4,19 @@ SNMP_NODES=${SNMP_NODES:-} MUNIN_USER=${MUNIN_USER:-user} MUNIN_PASSWORD=${MUNIN_PASSWORD:-password} MAIL_CONF_PATH='/var/lib/munin/.mailrc' +SMTP_USE_TLS=false truncate -s 0 "${MAIL_CONF_PATH}" -if [ -n "${SMTP_HOST}" -a -n "${SMTP_PORT}" ] ; then +if [ "${SMTP_USE_TLS}" = true ] ; then cat >> "${MAIL_CONF_PATH}" <> "${MAIL_CONF_PATH}" <