Allow custom email key for overnight scripts
This commit is contained in:
parent
5a4e2701df
commit
f97401009e
3 changed files with 13 additions and 5 deletions
|
@ -2,4 +2,4 @@
|
|||
|
||||
DATE=`date --date='yesterday' +%Y-%m-%d`
|
||||
|
||||
echo "${envroot}/bin/rattail -c ${appdir}/cron.conf --no-versioning run-n-mail -S 'Overnight catch-up: ${automation}' '${appdir}/overnight-${automation.lower()}.sh $DATE'" | at 'now + 1 minute'
|
||||
echo "${envroot}/bin/rattail -c ${appdir}/cron.conf --no-versioning run-n-mail ${"--key '{}'".format(email_key) if email_key is not Undefined and email_key else ''} -S 'Overnight catch-up: ${automation}' '${appdir}/overnight-${automation.lower()}.sh $DATE'" | at 'now + 1 minute'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue