Alpine crond doesn't inherit the container environment, so OUTLINE_API_TOKEN and other vars were missing. Dump env at startup and source it in each cron entry.
6 lines
327 B
Text
6 lines
327 B
Text
# Outline database + file backup — daily at 3 AM UTC
|
|
0 3 * * * . /etc/environment.sh; /app/scripts/outline-backup.sh /backups/outline >> /var/log/outline-backup.log 2>&1
|
|
|
|
# Wiki content export to git — daily at 4 AM UTC
|
|
0 4 * * * . /etc/environment.sh; /app/scripts/export-content-cron.sh >> /var/log/wiki-export.log 2>&1
|
|
|