mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-21 21:33:28 +01:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user