make run_cron cmd independent from push_success_notifiaction
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Moritz 2024-02-13 11:53:27 +01:00
parent f730c70bfe
commit dc66c02e23
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ fi
if [ -n "$PUSH_URL_SUCCESS" ]
then
push_success_notification=" 2>&1 | tee /tmp/backup.log && grep -q 'backup finished' /tmp/backup.log && curl -s '$PUSH_URL_SUCCESS'"
push_success_notification=" && grep -q 'backup finished' /tmp/backup.log && curl -s '$PUSH_URL_SUCCESS'"
fi
if [ -n "$PUSH_URL_FAIL" ]
@ -30,7 +30,7 @@ then
push_fail_notification="|| curl -s '$PUSH_URL_FAIL'"
fi
echo "$cron_schedule $push_start_notification backup --machine-logs create $push_success_notification $push_fail_notification" | crontab -
echo "$cron_schedule $push_start_notification backup --machine-logs create 2>&1 | tee /tmp/backup.log $push_success_notification $push_fail_notification" | crontab -
crontab -l
crond -f -d8 -L /dev/stdout