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