rebuild of backup command
This commit is contained in:
parent
28b56eed84
commit
1a6bdac9ee
1 changed files with 6 additions and 2 deletions
|
@ -17,10 +17,14 @@ if [[ $running ]]; then
|
|||
fi
|
||||
echo "Not currently running. Continuing..."
|
||||
curl https://hc-ping.com/$HEALTHCHECK_UUID/start
|
||||
if [[ $PRE_RUN_SCRIPT ]]; then
|
||||
$(pwd)/$PRE_RUN_SCRIPT
|
||||
fi
|
||||
$BACKUP_CMD
|
||||
if [[ $? == 0 ]]; then
|
||||
$POST_RUN_SCRIPT
|
||||
if [[ $POST_RUN_SCRIPT ]]; then
|
||||
$(pwd)/$POST_RUN_SCRIPT
|
||||
fi
|
||||
curl https://hc-ping.com/$HEALTHCHECK_UUID
|
||||
else
|
||||
curl https://hc-ping.com/$HEALTHCHECK_UUID/fail
|
||||
|
|
Loading…
Reference in a new issue