Use exit code 0 when running in manual mode

When running this container as a Kubernetes cronjob, it is really inconvenient that the script exits with return code "1", thereby marking the job as a failure.
Instead, the script should return "0" because everything was successful.
This commit is contained in:
Jack Henschel
2022-02-06 00:20:30 +01:00
committed by GitHub
parent 6033b1b0a9
commit 36b5909483

View File

@@ -529,7 +529,7 @@ print_debug "Backup routines Initialized on $(date)"
### Go back to Sleep until next Backup time ### Go back to Sleep until next Backup time
if var_true $MANUAL ; then if var_true $MANUAL ; then
exit 1; exit 0;
else else
sleep $(($DB_DUMP_FREQ*60)) sleep $(($DB_DUMP_FREQ*60))
fi fi