diff options
author | Michael Lewkowski <michael@lewkowski.de> | 2016-06-01 09:37:03 +0200 |
---|---|---|
committer | Michael Lewkowski <michael@lewkowski.de> | 2016-06-01 09:37:03 +0200 |
commit | 55e3dc2f06721d697935bdc0a820352675b8b185 (patch) | |
tree | fd74a02a599b8153f0c57c93ab01665d9a6bc89a /start-munin.sh | |
parent | b4cde28f0c82217fd24acce7283a8e1f4cbafd2b (diff) | |
download | munin-55e3dc2f06721d697935bdc0a820352675b8b185.tar.gz munin-55e3dc2f06721d697935bdc0a820352675b8b185.tar.bz2 munin-55e3dc2f06721d697935bdc0a820352675b8b185.tar.xz munin-55e3dc2f06721d697935bdc0a820352675b8b185.zip |
fixed quoting of smtp_message environment variable
Diffstat (limited to 'start-munin.sh')
-rw-r--r-- | start-munin.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/start-munin.sh b/start-munin.sh index 58b3d0a..235a7e4 100644 --- a/start-munin.sh +++ b/start-munin.sh @@ -35,7 +35,7 @@ fi grep -q 'contact.mail' /etc/munin/munin.conf; rc=$? if [ $rc -ne 0 -a -n "${ALERT_RECIPIENT}" -a -n "${ALERT_SENDER}" ] ; then echo "Setup alert email from ${ALERT_SENDER} to ${ALERT_RECIPIENT}" - echo "contact.mail.command mail -r ${ALERT_SENDER} -s ${SMTP_MESSAGE} ${ALERT_RECIPIENT}" >> /etc/munin/munin.conf +echo "contact.mail.command mail -r ${ALERT_SENDER} -s \'${SMTP_MESSAGE}\' ${ALERT_RECIPIENT}" >> /etc/munin/munin.conf if [ "${SMTP_ALWAYS_SEND}" = true ] ; then echo 'contact.mail.always_send warning critical' >> /etc/munin/munin.conf fi |