replaced /etc/environment with /etc/cron-env.sh to work with cron

This commit is contained in:
2025-10-22 19:10:04 +02:00
parent 4e21b1372f
commit 5546d5511e
3 changed files with 39 additions and 19 deletions

View File

@@ -1,2 +1,5 @@
0 8 * * * root /opt/app/run-task.sh --today
*/15 * * * * root /opt/app/run-task.sh
SHELL=/bin/bash
MAILTO=""
0 8 * * * root . /etc/cron-env.sh && /opt/app/run-task.sh --today >> /proc/1/fd/1 2>&1
*/15 * * * * root . /etc/cron-env.sh && /opt/app/run-task.sh >> /proc/1/fd/1 2>&1
* * * * * root echo "cron test ran at $(date)" >> /proc/1/fd/1 2>&1