Only call healthcheck if backup finished without errors
parent
3b68481bd0
commit
c31b585220
|
@ -57,14 +57,13 @@ global_exit=$(( compact_exit > global_exit ? compact_exit : global_exit ))
|
||||||
|
|
||||||
if [ ${global_exit} -eq 0 ]; then
|
if [ ${global_exit} -eq 0 ]; then
|
||||||
info "Backup, Prune, and Compact finished successfully"
|
info "Backup, Prune, and Compact finished successfully"
|
||||||
|
if [ ! -z "$HEALTHCHECK_URL" ]; then
|
||||||
|
curl -L $HEALTHCHECK_URL
|
||||||
|
fi
|
||||||
elif [ ${global_exit} -eq 1 ]; then
|
elif [ ${global_exit} -eq 1 ]; then
|
||||||
info "Backup, Prune, and/or Compact finished with warnings"
|
info "Backup, Prune, and/or Compact finished with warnings"
|
||||||
else
|
else
|
||||||
info "Backup, Prune, and/or Compact finished with errors"
|
info "Backup, Prune, and/or Compact finished with errors"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -z "$HEALTHCHECK_URL" ]; then
|
|
||||||
curl -L $HEALTHCHECK_URL
|
|
||||||
fi
|
|
||||||
|
|
||||||
exit ${global_exit}
|
exit ${global_exit}
|
Loading…
Reference in New Issue