Use new rattail overnight
command in cron-overnight.sh
script
this is all a bit of WIP at the moment, perhaps..
This commit is contained in:
parent
7ce3aae20c
commit
a36ecdb2ad
|
@ -6,21 +6,13 @@
|
|||
<%text>############################################################</%text>
|
||||
|
||||
|
||||
if [ "$1" = "--verbose" ]; then
|
||||
VERBOSE='--verbose'
|
||||
PROGRESS='--progress'
|
||||
else
|
||||
VERBOSE=
|
||||
PROGRESS=
|
||||
fi
|
||||
|
||||
cd ${envroot}
|
||||
|
||||
RATTAIL="bin/rattail --config=app/cron.conf $PROGRESS"
|
||||
RATTAIL="bin/rattail --config=app/cron.conf"
|
||||
|
||||
$RATTAIL run-n-mail --no-versioning --skip-if-empty <%text>\</%text>
|
||||
$RATTAIL overnight ${automation.lower()} <%text>\</%text>
|
||||
--no-versioning <%text>\</%text>
|
||||
% if email_key is not Undefined and email_key:
|
||||
--key '${email_key}' <%text>\</%text>
|
||||
--email-key '${email_key}' <%text>\</%text>
|
||||
% endif
|
||||
--subject 'Overnight automation: ${automation}' <%text>\</%text>
|
||||
${envroot}/app/overnight-${automation.lower()}.sh
|
||||
--no-email-if-empty
|
||||
|
|
Loading…
Reference in a new issue