From 36b590948377be4d63073ddbc4f77fb4e4f4c1b9 Mon Sep 17 00:00:00 2001 From: Jack Henschel Date: Sun, 6 Feb 2022 00:20:30 +0100 Subject: [PATCH] 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. --- install/etc/services.available/10-db-backup/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/etc/services.available/10-db-backup/run b/install/etc/services.available/10-db-backup/run index 801f769..d2c36c6 100755 --- a/install/etc/services.available/10-db-backup/run +++ b/install/etc/services.available/10-db-backup/run @@ -529,7 +529,7 @@ print_debug "Backup routines Initialized on $(date)" ### Go back to Sleep until next Backup time if var_true $MANUAL ; then - exit 1; + exit 0; else sleep $(($DB_DUMP_FREQ*60)) fi