2022-01-28 15:29:32 -06:00
|
|
|
#!/bin/sh -e
|
|
|
|
<%text>############################################################</%text>
|
|
|
|
#
|
|
|
|
# overnight automation (${automation}) via cron
|
|
|
|
#
|
|
|
|
<%text>############################################################</%text>
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$1" = "--verbose" ]; then
|
|
|
|
VERBOSE='--verbose'
|
|
|
|
PROGRESS='--progress'
|
|
|
|
else
|
|
|
|
VERBOSE=
|
|
|
|
PROGRESS=
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd ${envroot}
|
|
|
|
|
|
|
|
RATTAIL="bin/rattail --config=app/cron.conf $PROGRESS"
|
|
|
|
|
2022-01-29 17:28:46 -06:00
|
|
|
$RATTAIL run-n-mail --no-versioning --skip-if-empty --subject 'Overnight automation: ${automation}' ${envroot}/app/overnight-${automation.lower()}.sh
|