aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2017-02-19 00:21:03 +0100
committerSebastian Pipping <sebastian@pipping.org>2017-02-19 00:21:03 +0100
commit9b8d88cbe6cf290e607af8b864e5fb0381840e95 (patch)
tree8d644487bcfee03d917e7e8df6ce43d7ab446309
parentTurn default recipient to root@localhost (issue #8) (diff)
downloadporticron-9b8d88cbe6cf290e607af8b864e5fb0381840e95.tar.gz
porticron-9b8d88cbe6cf290e607af8b864e5fb0381840e95.tar.bz2
porticron-9b8d88cbe6cf290e607af8b864e5fb0381840e95.zip
Turn default recipient to root (issue #8)
-rwxr-xr-xbin/porticron2
-rw-r--r--etc/porticron.conf6
2 files changed, 5 insertions, 3 deletions
diff --git a/bin/porticron b/bin/porticron
index adcb733..dfb996c 100755
--- a/bin/porticron
+++ b/bin/porticron
@@ -120,7 +120,7 @@ DATE=$(date -R)
PORTDIR=$(portageq get_repo_path $(portageq envvar EROOT) gentoo)
# defaults, second half
-: ${RCPT:=root@localhost}
+: ${RCPT:=root}
: ${FROM:=root@${FQDN}}
: ${SYNC_CMD:=/usr/bin/emerge --sync}
: ${SYNC_OVERLAYS_CMD:=/bin/true}
diff --git a/etc/porticron.conf b/etc/porticron.conf
index e1c2f02..1bff768 100644
--- a/etc/porticron.conf
+++ b/etc/porticron.conf
@@ -22,9 +22,11 @@ UPGRADE_OPTS="--deep --update"
# sender of reports
FROM="root@$(hostname --fqdn)"
-# recipient for reports
+# recipient for reports, local mailbox
+RCPT=root
+
+# recipient for reports, e-mail address
#RCPT="root@$(hostname -f)"
-RCPT=root@localhost
# format of the e-mail subject
# use {FQDN}, {HOST}, {IP}, and {DATE} as variables