diff options
author | 2008-11-23 13:13:41 +0100 | |
---|---|---|
committer | 2008-11-23 13:13:41 +0100 | |
commit | 171a817e6bd6d031329497ccb66e2cf804eaa438 (patch) | |
tree | 38be1bf7ff60adf716e187c2b11d1d0a090b9284 | |
parent | consistency (diff) | |
download | porticron-171a817e6bd6d031329497ccb66e2cf804eaa438.tar.gz porticron-171a817e6bd6d031329497ccb66e2cf804eaa438.tar.bz2 porticron-171a817e6bd6d031329497ccb66e2cf804eaa438.zip |
make sendmail configurable and use sane defaultv0.2.1
-rwxr-xr-x | bin/porticron | 2 | ||||
-rw-r--r-- | etc/porticron.conf | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/bin/porticron b/bin/porticron index f83749a..5781a02 100755 --- a/bin/porticron +++ b/bin/porticron @@ -95,7 +95,7 @@ if [[ -z ${UPGRADE_MSG} && -z ${DIFF_MSG} ]]; then exit 0 fi -cat <<EOF | sendmail -t +cat <<EOF | ${SENDMAIL:-/usr/sbin/sendmail} -t To: ${RCPT:-root@${FQDN}} From: root@${FQDN} Subject: Gentoo package updates on ${FQDN} [ ${IP} ] diff --git a/etc/porticron.conf b/etc/porticron.conf index 82e5ac0..fb9b938 100644 --- a/etc/porticron.conf +++ b/etc/porticron.conf @@ -15,3 +15,6 @@ UPGRADE_OPTS="--deep --update" # recipient for reports RCPT=root@$(hostname -f) + +# path to sendmail binary +SENDMAIL=/usr/sbin/sendmail |