easier docker cron testing

master
Aevann 2024-02-12 14:10:36 +02:00
parent f2fe8be665
commit ef11d5d7bb
2 changed files with 2 additions and 1 deletions

2
cr 100644
View File

@ -0,0 +1,2 @@
. .env
/usr/local/bin/flask cron --every-1d

View File

@ -5,7 +5,6 @@ LOG='/var/log/rdrama/cron.log'
echo -e "\n---------------------------------------- $1 === $(date)" >> "$LOG"
source /e
. .env
/usr/local/bin/flask cron $1 >> "$LOG" 2>&1
echo -e "======================================== $1 === $(date)" >> "$LOG"