Backup: Don't trigger alerts for warnings
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tobias Manske 2023-04-17 21:04:03 +02:00
parent 3f90398862
commit ad5c55ca23
Signed by: tobias
GPG Key ID: 9164B527694A0709

View File

@ -61,6 +61,7 @@ if [ ${global_exit} -eq 0 ]; then
elif [ ${global_exit} -eq 1 ]; then elif [ ${global_exit} -eq 1 ]; then
info "Backup and/or Prune finished with warnings" info "Backup and/or Prune finished with warnings"
/usr/bin/curl -fsS -m 10 --retry 5 -o /dev/null "https://monitor.chaoswg.org/api/push/${PUSH_KEY}?msg=OK&ping=" /usr/bin/curl -fsS -m 10 --retry 5 -o /dev/null "https://monitor.chaoswg.org/api/push/${PUSH_KEY}?msg=OK&ping="
exit 0 # We dont want to get notified about warnings as this would make the systemd unit fail.
else else
info "Backup and/or Prune finished with errors" info "Backup and/or Prune finished with errors"
fi fi