From dc66c02e2372ea77a36cc63492e983077d65d548 Mon Sep 17 00:00:00 2001 From: Moritz Date: Tue, 13 Feb 2024 11:53:27 +0100 Subject: [PATCH] make run_cron cmd independent from push_success_notifiaction --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 30bbf73..4fafefa 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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