make run_cron cmd independent from push_success_notifiaction
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
f730c70bfe
commit
dc66c02e23
@ -22,7 +22,7 @@ fi
|
|||||||
|
|
||||||
if [ -n "$PUSH_URL_SUCCESS" ]
|
if [ -n "$PUSH_URL_SUCCESS" ]
|
||||||
then
|
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
|
fi
|
||||||
|
|
||||||
if [ -n "$PUSH_URL_FAIL" ]
|
if [ -n "$PUSH_URL_FAIL" ]
|
||||||
@ -30,7 +30,7 @@ then
|
|||||||
push_fail_notification="|| curl -s '$PUSH_URL_FAIL'"
|
push_fail_notification="|| curl -s '$PUSH_URL_FAIL'"
|
||||||
fi
|
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
|
crontab -l
|
||||||
|
|
||||||
crond -f -d8 -L /dev/stdout
|
crond -f -d8 -L /dev/stdout
|
||||||
|
Loading…
x
Reference in New Issue
Block a user