mirror of
https://github.com/mag37/dockcheck.git
synced 2026-04-17 01:47:45 +00:00
update SMTP template, added suport for sendmail (#219)
* update smtp template, add suport for sendmail * add sendmail to DSM and bump version * correct errormsg and version number
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
### DISCLAIMER: This is a third party addition to dockcheck - best effort testing.
|
### DISCLAIMER: This is a third party addition to dockcheck - best effort testing.
|
||||||
NOTIFY_DSM_VERSION="v0.3"
|
NOTIFY_DSM_VERSION="v0.4"
|
||||||
# INFO: ssmtp is deprecated - consider to use msmtp instead.
|
# INFO: ssmtp is deprecated - consider to use msmtp instead.
|
||||||
#
|
#
|
||||||
# mSMTP/sSMTP has to be installed and configured manually.
|
# mSMTP/sSMTP has to be installed and configured manually.
|
||||||
@@ -10,13 +10,16 @@ NOTIFY_DSM_VERSION="v0.3"
|
|||||||
|
|
||||||
MSMTP=$(which msmtp)
|
MSMTP=$(which msmtp)
|
||||||
SSMTP=$(which ssmtp)
|
SSMTP=$(which ssmtp)
|
||||||
|
SENDMAIL=$(which sendmail)
|
||||||
|
|
||||||
if [ -n "$MSMTP" ] ; then
|
if [ -n "$MSMTP" ] ; then
|
||||||
MailPkg=$MSMTP
|
MailPkg=$MSMTP
|
||||||
elif [ -n "$SSMTP" ] ; then
|
elif [ -n "$SSMTP" ] ; then
|
||||||
MailPkg=$SSMTP
|
MailPkg=$SSMTP
|
||||||
|
elif [ -n "$SENDMAIL" ] ; then
|
||||||
|
MailPkg=$SENDMAIL
|
||||||
else
|
else
|
||||||
echo "No msmtp or ssmtp binary found in PATH: $PATH" ; exit 1
|
echo "No msmtp, ssmtp or sendmail binary found in PATH: $PATH" ; exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
trigger_DSM_notification() {
|
trigger_DSM_notification() {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
### DISCLAIMER: This is a third party addition to dockcheck - best effort testing.
|
### DISCLAIMER: This is a third party addition to dockcheck - best effort testing.
|
||||||
NOTIFY_SMTP_VERSION="v0.3"
|
NOTIFY_SMTP_VERSION="v0.4"
|
||||||
# INFO: ssmtp is depcerated - consider to use msmtp instead.
|
# INFO: ssmtp is depcerated - consider to use msmtp instead.
|
||||||
#
|
#
|
||||||
# mSMTP/sSMTP has to be installed and configured manually.
|
# mSMTP/sSMTP has to be installed and configured manually.
|
||||||
@@ -15,13 +15,16 @@ fi
|
|||||||
|
|
||||||
MSMTP=$(which msmtp)
|
MSMTP=$(which msmtp)
|
||||||
SSMTP=$(which ssmtp)
|
SSMTP=$(which ssmtp)
|
||||||
|
SENDMAIL=$(which sendmail)
|
||||||
|
|
||||||
if [ -n "$MSMTP" ] ; then
|
if [ -n "$MSMTP" ] ; then
|
||||||
MailPkg=$MSMTP
|
MailPkg=$MSMTP
|
||||||
elif [ -n "$SSMTP" ] ; then
|
elif [ -n "$SSMTP" ] ; then
|
||||||
MailPkg=$SSMTP
|
MailPkg=$SSMTP
|
||||||
|
elif [ -n "$SENDMAIL" ] ; then
|
||||||
|
MailPkg=$SENDMAIL
|
||||||
else
|
else
|
||||||
echo "No msmtp or ssmtp binary found in PATH: $PATH" ; exit 1
|
echo "No msmtp, ssmtp or sendmail binary found in PATH: $PATH" ; exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
trigger_smtp_notification() {
|
trigger_smtp_notification() {
|
||||||
|
|||||||
Reference in New Issue
Block a user