1
0
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:
Elsie Hupp 2026-01-26 16:55:34 -05:00
parent 3b53bf5ae4
commit 665400df91
No known key found for this signature in database
GPG Key ID: 4026ACBE8D448CDC

View File

@ -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