From a1332a717f323f42c596fc07df32c27d2b1def35 Mon Sep 17 00:00:00 2001 From: Thomas Dietrich Date: Wed, 3 Jun 2020 15:07:24 +0200 Subject: [PATCH] Hide START_PERIOD=0 from log --- docker-entrypoint | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-entrypoint b/docker-entrypoint index 67f092d..58ad9b7 100755 --- a/docker-entrypoint +++ b/docker-entrypoint @@ -35,7 +35,7 @@ if [ "$1" = 'autoheal' ] && [ -e ${DOCKER_SOCK} ]; then fi AUTOHEAL_START_PERIOD=${AUTOHEAL_START_PERIOD:=0} - echo "Monitoring containers for unhealthy status in ${AUTOHEAL_START_PERIOD} second(s)" + echo "Monitoring containers for unhealthy status $([ "${AUTOHEAL_START_PERIOD}" != 0 ] && echo "in ${AUTOHEAL_START_PERIOD} second(s)")" sleep ${AUTOHEAL_START_PERIOD} while true; do