From 1f23e92047e7ef2e3887dac63219d98f981b3adc Mon Sep 17 00:00:00 2001 From: Aterfax Date: Mon, 24 Mar 2025 14:50:41 +0000 Subject: [PATCH] Update run_include to silence healthcheck output. --- docker/src/s6-services/backup/run_include | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/src/s6-services/backup/run_include b/docker/src/s6-services/backup/run_include index cc536c1..d7c4ffe 100755 --- a/docker/src/s6-services/backup/run_include +++ b/docker/src/s6-services/backup/run_include @@ -60,7 +60,7 @@ fi # to allow the first backup or we're if [ "$CRON_BACKUP_ONLY" = "0" ] || [ -e "${lastrunfile}" ]; then if [ -n "$HEALTHCHECKSURL" ]; then - curl -fsS -m 10 --retry 5 $HEALTHCHECKSURL/start + curl -fsS -m 10 --retry 5 -o /dev/null $HEALTHCHECKSURL/start fi # Run the actual backup command. @@ -72,7 +72,7 @@ if [ "$CRON_BACKUP_ONLY" = "0" ] || [ -e "${lastrunfile}" ]; then if [ -n "$HEALTHCHECKSURL" ]; then # We pipe the exit code to healthchecks, if it isn't zero, a warning will fire. - curl -fsS -m 10 --retry 5 ${HEALTHCHECKSURL}/${BACKUP_EXIT_CODE} + curl -fsS -m 10 --retry 5 -o /dev/null ${HEALTHCHECKSURL}/${BACKUP_EXIT_CODE} fi elif [ "$CRON_BACKUP_ONLY" = "1" ]; then echo "CRON_BACKUP_ONLY=1, skipping container start up initial backup." @@ -83,4 +83,4 @@ fi # Set this so backups always happen after the first run via CRON given logic above. # The date may also be useful for something like a health check if I write it... # First run touches the file. Backups will set the date. -touch "${lastrunfile}" \ No newline at end of file +touch "${lastrunfile}"