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:
Lance Edgar 2022-11-20 15:54:58 -06:00
parent 7ce3aae20c
commit a36ecdb2ad

View file

@ -6,21 +6,13 @@
<%text>############################################################</%text> <%text>############################################################</%text>
if [ "$1" = "--verbose" ]; then
VERBOSE='--verbose'
PROGRESS='--progress'
else
VERBOSE=
PROGRESS=
fi
cd ${envroot} 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: % if email_key is not Undefined and email_key:
--key '${email_key}' <%text>\</%text> --email-key '${email_key}' <%text>\</%text>
% endif % endif
--subject 'Overnight automation: ${automation}' <%text>\</%text> --no-email-if-empty
${envroot}/app/overnight-${automation.lower()}.sh