diff options
author | 2017-02-18 02:21:04 +0100 | |
---|---|---|
committer | 2017-02-18 02:27:48 +0100 | |
commit | 4a3c0ebbae601b6d891709c406fa66e5fd2d41db (patch) | |
tree | 390134760f9858a586101c59ab827e46239193fb | |
parent | Make mail from configurable through ${FROM} (issue #7) (diff) | |
download | porticron-4a3c0ebbae601b6d891709c406fa66e5fd2d41db.tar.gz porticron-4a3c0ebbae601b6d891709c406fa66e5fd2d41db.tar.bz2 porticron-4a3c0ebbae601b6d891709c406fa66e5fd2d41db.zip |
Turn default recipient to root@localhost (issue #8)
-rwxr-xr-x | bin/porticron | 2 | ||||
-rw-r--r-- | etc/porticron.conf | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/bin/porticron b/bin/porticron index 2a1da0c..adcb733 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@${FQDN}} +: ${RCPT:=root@localhost} : ${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 33b770a..e1c2f02 100644 --- a/etc/porticron.conf +++ b/etc/porticron.conf @@ -23,7 +23,8 @@ UPGRADE_OPTS="--deep --update" FROM="root@$(hostname --fqdn)" # recipient for reports -RCPT=root@$(hostname -f) +#RCPT="root@$(hostname -f)" +RCPT=root@localhost # format of the e-mail subject # use {FQDN}, {HOST}, {IP}, and {DATE} as variables |