From f80f888d6cffc9d727832216f72a9b937aec3f39 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Fri, 17 Apr 2026 15:17:17 +0200 Subject: [PATCH] allow to adjust the log level globally (whiteboard) Signed-off-by: Simon L. --- Containers/whiteboard/healthcheck.sh | 4 ++++ Containers/whiteboard/start.sh | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/Containers/whiteboard/healthcheck.sh b/Containers/whiteboard/healthcheck.sh index 5909db82..91dc31eb 100644 --- a/Containers/whiteboard/healthcheck.sh +++ b/Containers/whiteboard/healthcheck.sh @@ -1,4 +1,8 @@ #!/bin/bash +if [ "$AIO_LOG_LEVEL" = 'debug' ]; then + set -x +fi + nc -z "$REDIS_HOST" "$REDIS_PORT" || exit 0 nc -z 127.0.0.1 3002 || exit 1 diff --git a/Containers/whiteboard/start.sh b/Containers/whiteboard/start.sh index e0babd7f..5675a94a 100644 --- a/Containers/whiteboard/start.sh +++ b/Containers/whiteboard/start.sh @@ -1,5 +1,11 @@ #!/bin/bash +if [ "$AIO_LOG_LEVEL" = 'debug' ]; then + set -x +fi + +export LOG_LEVEL="$AIO_LOG_LEVEL" + # Only start container if nextcloud is accessible while ! nc -z "$REDIS_HOST" "$REDIS_PORT"; do echo "Waiting for redis to start..."