Skip to content

Commit

Permalink
devlist-mailer: Make LIST and FROM configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeShu committed Mar 22, 2018
1 parent 1713c50 commit 5a6c4dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions config
Expand Up @@ -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}"
5 changes: 2 additions & 3 deletions cron-jobs/devlist-mailer
Expand Up @@ -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
Expand Down

0 comments on commit 5a6c4dd

Please sign in to comment.