diff options
author | Luke Shumaker <lukeshu@parabola.nu> | 2015-05-25 01:00:46 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@parabola.nu> | 2018-03-16 16:55:41 -0400 |
commit | f5774e42c6d2e2b875579a3404d201dd8811e167 (patch) | |
tree | 6a96c4fbda90e60edc90a7e73595a27547b32479 | |
parent | c5e2632c02baeecf8aaebf05caa6f9afc84d959c (diff) |
devlist-mailer: Make LIST and FROM configurablelukeshu/to-upstream/2018-03-16-archlinux+cleanup-v7
-rw-r--r-- | config | 5 | ||||
-rwxr-xr-x | cron-jobs/devlist-mailer | 5 |
2 files changed, 7 insertions, 3 deletions
@@ -35,6 +35,11 @@ PKGEXTS=".pkg.tar.@(gz|bz2|xz|lzo|lrz|Z)" # Allowed licenses: get sourceballs only for licenses in this array ALLOWED_LICENSES=('GPL' 'GPL1' 'GPL2' 'GPL3' 'LGPL' 'LGPL1' 'LGPL2' 'LGPL2.1' 'LGPL3') +# 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 LOCAL_CONFIG=${DBSCRIPTS_CONFIG:-"$(dirname "${BASH_SOURCE[0]}")/config.local"} [[ -f "${LOCAL_CONFIG}" ]] && . "${LOCAL_CONFIG}" diff --git a/cron-jobs/devlist-mailer b/cron-jobs/devlist-mailer index 1b59cb3..578d23e 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 (( $# >= 1 )); then |