From a9c43678db7671a1c575f197299695de446dcee1 Mon Sep 17 00:00:00 2001 From: Michael Lewkowski Date: Wed, 1 Jun 2016 07:24:32 +0200 Subject: made smtp auth optional --- start-munin.sh | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/start-munin.sh b/start-munin.sh index c3aa70b..954a112 100644 --- a/start-munin.sh +++ b/start-munin.sh @@ -3,15 +3,23 @@ NODES=${NODES:-} SNMP_NODES=${SNMP_NODES:-} MUNIN_USER=${MUNIN_USER:-user} MUNIN_PASSWORD=${MUNIN_PASSWORD:-password} +MAIL_CONF_PATH='/var/lib/munin/.mailrc' -if [ -n "${SMTP_USERNAME}" -a -n "${SMTP_PASSWORD}" -a -n "${SMTP_HOST}" -a -n "${SMTP_PORT}" ] ; then - cat > /var/lib/munin/.mailrc <> "${MAIL_CONF_PATH}" <> "${MAIL_CONF_PATH}" <