diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-05-25 01:00:46 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-04-17 14:46:10 -0400 |
commit | 9109540a48f2c1f64bb049702b3e8d849571c487 (patch) | |
tree | 6464d73f539ede211078ad6ca873f9ac3d03d87c | |
parent | 98fed653068f79dca7ec801bfb2918a1550326e7 (diff) |
devlist-mailer: Make LIST and FROM configurablelukeshu/archlinux+cleanup
-rw-r--r-- | config | 5 | ||||
-rwxr-xr-x | cron-jobs/devlist-mailer | 5 |
2 files changed, 7 insertions, 3 deletions
@@ -35,5 +35,10 @@ SRCEXT=".src.tar.gz" # Allowed licenses: get sourceballs only for licenses in this array ALLOWED_LICENSES=('GPL' 'GPL1' 'GPL2' 'LGPL' 'LGPL1' 'LGPL2' 'LGPL2.1') +# Where to send error emails, and who they are from +LIST="arch-dev-public@archlinux.org" +#LIST="aaronmgriffin@gmail.com" +FROM="repomaint@archlinux.org" + # Override default config with config.local [ -f "$(dirname "${BASH_SOURCE[0]}")/config.local" ] && . "$(dirname "${BASH_SOURCE[0]}")/config.local" diff --git a/cron-jobs/devlist-mailer b/cron-jobs/devlist-mailer index 1a05521..7f298b9 100755 --- a/cron-jobs/devlist-mailer +++ b/cron-jobs/devlist-mailer @@ -2,9 +2,8 @@ #Dummy helper to send email to arch-dev # It does nothing if no output -LIST="arch-dev-public@archlinux.org" -#LIST="aaronmgriffin@gmail.com" -FROM="repomaint@archlinux.org" +# Load $LIST and $FROM from the config file +. "$(dirname "$(readlink -e "$0")")/../config" SUBJECT="Repository Maintenance $(date +"%d-%m-%Y")" if [ $# -ge 1 ]; then |