mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-02 15:34:48 +01:00
Add environmental variables to cron job
This commit is contained in:
parent
3b53bf5ae4
commit
665400df91
@ -116,6 +116,8 @@ minute=$((RANDOM % 60)) # avoid overloading mailinabox.email
|
||||
cat > /etc/cron.d/mailinabox-nightly << EOF;
|
||||
# Mail-in-a-Box --- Do not edit / will be overwritten on update.
|
||||
# Run nightly tasks: backup, status checks.
|
||||
AWS_REQUEST_CHECKSUM_CALCULATION=when_required
|
||||
AWS_RESPONSE_CHECKSUM_VALIDATION=when_required
|
||||
$minute 1 * * * root (cd $PWD && management/daily_tasks.sh)
|
||||
EOF
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user