rattail-fabric2/rattail_fabric2/deploy/luigi/restart-overnight.sh.mako

6 lines
336 B
Plaintext
Raw Normal View History

#!/bin/sh -e
DATE=`date --date='yesterday' +%Y-%m-%d`
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'